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

What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2186


Why we go for mvc instead of asp.net? : Asp.Net MVC

699


Can asp.net work on an nt server?

726


What is autopostback in dropdownlist in asp net?

719


How do you remove duplicates without using remove duplicate stage?

781


What is the caspol.exe tool used for?

732


Can you set the session out time manually?

578


What is validation in asp.net?

754


What is the use of dispose method?

742


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1858


Is oauth for authentication or authorization?

753


Explain swagger components.

744


What is GAC in ASP.NET 2.0

785


What are the difference between function and stored procedure in .net programming language?

445


What is the parent class of all the web server control?

694