Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to regenerate my session when I goes die.Can I do that?
Posted
Comments
Kishor Deshpande 31-Jan-13 1:28am    
Can you explain in detail what you want to do with it?
Ideally you should not regenerate it, that too Session_End is not proper place for it.
Hemant Singh Rautela 31-Jan-13 1:36am    
IF you want to increase session lifetime, then why not increase its timeout property...By default it is 20 minute, you can increase it in web.config section.

regenerating session in (Session_End) global.asax is not good solution...

1 solution

Hi Akilmbelim,

Using the session end for that is a bit of a twist if you ask me.
If you want to go under the hood though to achieve your goal, you can use HttpModule to handle session-end[^].

* If you want to state your specific need (not the solution to it) we might be able to offer another approach to solving it.

Cheers,
Edo
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900