Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > What factor determine a session to end?

Reply
Thread Tools

What factor determine a session to end?

 
 
Kian Goh
Guest
Posts: n/a
 
      07-24-2003
Hi there,

Just wonder what factor actually determine a session to end?

What happen a user close the browser or switch to other website? Does the
session end immediately or 20 minutes later? (20 minutes defined in
Web.config)

Thanks,
Kian



 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      07-24-2003
20 minutes later.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"Kian Goh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi there,
>
> Just wonder what factor actually determine a session to end?
>
> What happen a user close the browser or switch to other website? Does the
> session end immediately or 20 minutes later? (20 minutes defined in
> Web.config)
>
> Thanks,
> Kian
>
>
>



 
Reply With Quote
 
 
 
 
Steve C. Orr, MCSD
Guest
Posts: n/a
 
      07-24-2003
The session will time out after 20 minutes of no page requests from the
user.
This default time interval is configurable in your web.config file.
After the session times out the Session_End event will be called in your
Global.asax file.
You can terminate the session manually by calling Session.Abandon, but be
aware this will cause the Session_End event to not be called. But that's
not so bad. Just take your code from the Session_End event, put it in a
separate function, then call that function from both your Session_End event
and whenever you call Session.Abandon.

Here's more details for you:
http://www.asp.net/Forums/ShowPost.a...=1&PostID=7504

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net


"Kian Goh" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi there,
>
> Just wonder what factor actually determine a session to end?
>
> What happen a user close the browser or switch to other website? Does the
> session end immediately or 20 minutes later? (20 minutes defined in
> Web.config)
>
> Thanks,
> Kian
>
>
>



 
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
What's the status of Breeze Factor ? Daniel Chou Java 1 06-20-2008 03:48 AM
An Introduction to Thermaltake's BTX Form Factor Cases Silverstrand Front Page News 0 01-23-2006 04:09 AM
Solution for securing VPN using 2-factor SMS Authentication Joshua Lim Cisco 0 06-11-2005 10:47 AM
The XHTML Factor Frank Thomas ASP .Net 3 07-18-2004 12:03 PM
nuby: determine method passed and determine the receiver that received the method Peņa, Botp Ruby 1 01-24-2004 07:51 PM



Advertisments