Click here to Skip to main content
13,507,984 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to regenerate my session when I goes die.Can I do that?
Posted 30-Jan-13 19:03pm
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.
hemantrautela 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180417.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100