Can session variables be accessed from code-behind?

Answer Posted / swapna

Yes. You can access the "Session" dictionary within a code-
behind file just like you would if you were accessing it
from within an line .aspx file.

For example: Session("Name") = "Scott"

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about asp.net caching?

587


What is the maximum amount of memory any single process on windows can address?

542


Explain the concept of MVC Scaffolding?

601


How to retrieve user name in case of Window Authentication?

289


Explain how can we access static variable?

562






Can action method static?

541


What are demand-paging and pre-paging?

588


How do u deploy your asp.net application?

616


Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

555


What is the difference between “Web.config” and “Machine.Config”?

708


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

640


Difference between overriding and overloading?

708


Explain server control extensibility with reference to asp.net 2.0 ?

554


What are the main requirements for caching?

551


How does output caching work in ASP.NET?

509