1 Replies - 1970 Views - Last Post: 20 July 2010 - 06:35 AM Rate Topic: -----

#1 visweswaran28  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 45
  • Joined: 29-October 09

How to get time of last request in asp.net

Posted 19 July 2010 - 11:57 PM

Hi,

How can I get time of last request Sent in asp.net.. Actually I want to set automatic Idle timeout. So I planned to compare this time with current. Please Help me. Other solutions are also invited..

Thanks in Advance.
Is This A Good Question/Topic? 0
  • +

Replies To: How to get time of last request in asp.net

#2 Frinavale  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 205
  • View blog
  • Posts: 776
  • Joined: 03-June 10

Re: How to get time of last request in asp.net

Posted 20 July 2010 - 06:35 AM

The answer to this question depends on how you have implemented your project.

Did you use Session?
InProc Session, by default, times out after 20 minutes. You can handle the Session_End event (in the Global.asax file) to clean up any resources. Please note that it doesn't necessarily mean that the Session_End event is going to be executed after 20 minutes of the user being idle (when session expires)...the Session_End event is executed when the Session ID is recycled.

If you aren't using session...then you'll have to tell us what you are using so that we can make suggestions.

-Frinny
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1