Session managerment in asp.net

Posted by Venu510 under ASP.NET on 7/29/2011 | Points: 10 | Views : 904 | Status : [Member] | Replies : 4
Hi Friends!

When the Session_End Event in Global.asax will fire and what we should do there.

Regards
---------
Venu




Responses

Posted by: Lalji_mer on: 7/29/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,,

Refer this link

http://forums.asp.net/t/1254438.aspx/1?When+will+fire+session+end+event+

LP MER

Venu510, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 7/29/2011 [Member] Bronze | Points: 25

Up
0
Down

Posted by: Vforvijay on: 7/29/2011 [Member] Starter | Points: 25

Up
0
Down
Refer the below links.......
http://vbdotnetaddict.blogspot.com/2011/01/avoid-multiple-user-to-login-at-same.html

Venu510, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hemanthlaxmi on: 7/29/2011 [Member] Starter | Points: 25

Up
0
Down

Don't let your code depend on the Session_end event, there can be cases when this event won't fire at all, like when user closes his browser etc. It fires only when session times out.

Also, note that by default session expiry is based on sliding timeout. So even if timeout is set to 1 min but a request is made within that duration the timeout will slide further. In a nutshell, I would not recommend putting any code in the Session_end event.

Hope this helps
Thanks & Regards,
Hemanth V

If this helps you .
Please "Mark as Answer"

Venu510, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response