Session Time out---info needed

  • Thread starter Thread starter thomson
  • Start date Start date
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
 
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).
 
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

Back
Top