Session Time out---info needed

T

thomson

Hi all,
In the Web.config file , i have specified the Session timeout
as 20 minutes.

I need a clarification that , when this timeout happens. all the
Session variables will be null


For eg: once i have logged in i do have a Session["Login"]=id

When the session expires will it automatically change to null

Thanks in advance

thomson
 
G

Guest

Hello,

When the session times out, the session data will be discarded from the
memory. Accessing session variables after that (in a new session) will return
null (since they don't exist anymore).
 
S

Stu

Hi,

When the session ends an event fires in the Global.asax file called
Session_End - you can do additional cleanup here.

Stu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top