We help IT Professionals succeed at work.

Session("varname") vs. Session.Add()

rascal
rascal asked
on
I've seen ASP.NET code use Session("var")="123" and I've seen Session.Add("var","123")

What's the difference (if any) between the two?
Comment
Watch Question

There is no difference between Session("var") = 123 and Session.Add("var", 123)

- Deepak Lakkad