Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
I want to regenerate my session when I goes die.Can I do that?
Posted 30-Jan-13 20:03pm
Comments
Kishor Deshpande at 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 at 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
good
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.
 
Cheers,
Edo
  Permalink  

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

  Print Answers RSS
0 Maciej Los 495
1 OriginalGriff 400
2 Sergey Alexandrovich Kryukov 394
3 CHill60 320
4 Sascha Lefévre 269
0 Sergey Alexandrovich Kryukov 10,017
1 OriginalGriff 9,495
2 Peter Leow 5,241
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,076


Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2015
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