Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Session variables and Session_OnEnd

Reply
Thread Tools

Session variables and Session_OnEnd

 
 
Hans Kesting
Guest
Posts: n/a
 
      08-18-2003
Hi,

When the Session_OnEnd event fires, do the Session variables still exist?
I want to do some cleanup (update some records in a database etc.),
but then I need to know *which* recopds to update ...

Can I access these session variables through HttpContext.Current.Session ?
(the cleanup-code is in a separate class, which is defined within the
website)


Hans Kesting


 
Reply With Quote
 
 
 
 
Ravikanth[MVP]
Guest
Posts: n/a
 
      08-18-2003
Hi

You can access Session Variables through
HttpContext.Current.Session.

Ravikanth

>-----Original Message-----
>Hi,
>
>When the Session_OnEnd event fires, do the Session

variables still exist?
>I want to do some cleanup (update some records in a

database etc.),
>but then I need to know *which* recopds to update ...
>
>Can I access these session variables through

HttpContext.Current.Session ?
>(the cleanup-code is in a separate class, which is

defined within the
>website)
>
>
>Hans Kesting
>
>
>.
>

 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      08-19-2003
Yes, I know, I already use that.
But: are those session variables *still* available when handling the
Session_OnEnd event?

Or to put it in another way: exactly *when* is this event fired?
- right after the session has expired (so any stored variables are gone), or
- just before expiring (so that any stored variables are still available)

I hope the second one is true, as that is the most useful.

Hans Kesting

"Ravikanth[MVP]" <> wrote in message
news:0ad701c365a4$b26e7090$...
> Hi
>
> You can access Session Variables through
> HttpContext.Current.Session.
>
> Ravikanth
>
> >-----Original Message-----
> >Hi,
> >
> >When the Session_OnEnd event fires, do the Session

> variables still exist?
> >I want to do some cleanup (update some records in a

> database etc.),
> >but then I need to know *which* recopds to update ...
> >
> >Can I access these session variables through

> HttpContext.Current.Session ?
> >(the cleanup-code is in a separate class, which is

> defined within the
> >website)
> >
> >
> >Hans Kesting
> >
> >
> >.
> >



 
Reply With Quote
 
Natty Gur
Guest
Posts: n/a
 
      08-19-2003
MSDN :
"The Session_OnEnd event occurs when a session is abandoned or times
out. Of the server built-in objects, only the Application, Server, and
*Session* objects are available. "

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Hans Kesting
Guest
Posts: n/a
 
      08-19-2003
Thanks,

I did search for it, but couldn't find the correct entry.

Hans Kesting

"Natty Gur" <> wrote in message
news:...
> MSDN :
> "The Session_OnEnd event occurs when a session is abandoned or times
> out. Of the server built-in objects, only the Application, Server, and
> *Session* objects are available. "
>
> Natty Gur, CTO
> Dao2Com Ltd.
> 34th Elkalay st. Raanana
> Israel , 43000
> Phone Numbers:
> Office: +972-(0)9-7740261
> Fax: +972-(0)9-7740261
> Mobile: +972-(0)58-888377
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session_OnEnd event is supported only the in-process session-statemode John H ASP .Net 0 06-24-2009 11:44 AM
Session_OnEnd() - what session? =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= ASP .Net 11 07-18-2006 01:18 AM
Session Data in Session_OnEnd David Logan ASP General 1 05-21-2004 06:33 PM
Global.asa and Session_OnEnd Soha El-Saeed ASP General 1 02-04-2004 09:17 AM
YET ANOTHER QUESTION ON SESSION TIMEOUT AND SESSION_ONEND() HolaGoogle Javascript 4 11-20-2003 08:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57