Re: session question

From: San (sanjay_nadimpalli@yahoo.com)
Date: 07/23/02


From: "San" <sanjay_nadimpalli@yahoo.com>
Date: Mon, 22 Jul 2002 16:04:27 -0700


How is session expiration handled on server? Does programmer have any
control over it? Can I programmatically "reset" the Session timer?

Thanks

San
"Patrick Y. Ng (ms)" <patng@microsoft.com> wrote in message
news:eq8hnHdMCHA.1976@tkmsftngp11...
> (a) It's because no expiration date is set on the session id cookie
> (b) Session expiry isn't implemented using the cookie expiry. It's
> implemented on the server side. (Consider the case where cookieless is
> used) Session.Timeout gives you the expiry period in minutes.
>
> --
> Patrick Y. Ng
> ASP.NET Developer
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "San" <sanjay_nadimpalli@yahoo.com> wrote in message
> news:eRpWvpcMCHA.668@tkmsftngp09...
> > I have the following two lines of code that get called on every http
> > request:
> >
> > HttpCookie cookie =
> > HttpContext.Current.Request.Cookies["ASP.NET_SessionId"];
> >
> > Response.AppendToLog("Cookie expires on date:" + cookie.Expires);
> >
> > The expiration time on cookie ASP.NET_SessionId is always January 1,
0001,
> > 12 AM. Two things:
> >
> > (a) Why is it initialized to Jan 1, 2001 12 AM?
> >
> > (b) Shouldnt the cookie expiration change whenever the user makes a
> request
> > (within the 20 minute interval, assuming session timeout is set to 20
> > minutes).
> >
> > Thanks
> >
> > San
> >
> >
> >
> >
>
>



Relevant Pages

  • Re: Problem with Firefox/Mozilla and Cookies.
    ... So that is why I loose the cookie and any session ... >> So my problem is that the mozilla based browsers do not retain the ... The expiration date on them are set to "at the end of the session" ...
    (comp.lang.php)
  • set session cookie expiration date
    ... I use PHP session cookie to store an id number. ... I know how to set a cookie expiration date using the setcookie function, ... how to set an expiration date when the cookie is created by the ... I know the cookie expires after the session ends, but when I look at my HTTP ...
    (comp.lang.php)
  • Re: Global.asax Session_End
    ... I am evaluating the Session's state when I load my pages using a Cookie that holds some session related information. ... If the user is in a different time zone, the cookie will either last for hours or expire immediately. ... Don't use the cookie expiration to keep track of the session timeout. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sessions vs Cookies
    ... There is a session cookie which simply allows the server to identify the client and retrieve relevant session data for it. ... If cookies can be read or forged, it makes little odds whether you have the master key or all the little keys,. ... Suppose you only send the PHPSESSID: Now you cannot change a thing on the server, even if you have the 'master key'. ...
    (comp.lang.php)
  • Re: session wont timeout
    ... Maybe this is a session cookie issue? ... client browser there is this one: WSS_KeepSessionAuthenticated Expires: At ... If I kill the session cookie using IE Developer Toolbar, ... possible and IIS would throw another challenge. ...
    (microsoft.public.sharepoint.windowsservices)