Re: session question
From: San (sanjay_nadimpalli@yahoo.com)
Date: 07/23/02
- Next message: Kishore: "Cryptography"
- Previous message: johnny hu: "asp.net user and servicedcoimponent accessed by iis based remoting"
- In reply to: Patrick Y. Ng \(ms\): "Re: session question"
- Next in thread: Patrick Y. Ng \(ms\): "Re: session question"
- Reply: Patrick Y. Ng \(ms\): "Re: session question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "San" <sanjay_nadimpalli@yahoo.com> Date: Mon, 22 Jul 2002 19:27:26 -0700
Well Session.Timeout will change the timeout interval. But I want to change
the session expiration time. How can I do that?
Thanks
San
"Patrick Y. Ng (ms)" <patng@microsoft.com> wrote in message
news:e9K8treMCHA.2380@tkmsftngp12...
> You can set the value using Session.Timeout. (or set it thru config file)
>
> --
> 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:utcrCQdMCHA.2664@tkmsftngp09...
> > 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
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Kishore: "Cryptography"
- Previous message: johnny hu: "asp.net user and servicedcoimponent accessed by iis based remoting"
- In reply to: Patrick Y. Ng \(ms\): "Re: session question"
- Next in thread: Patrick Y. Ng \(ms\): "Re: session question"
- Reply: Patrick Y. Ng \(ms\): "Re: session question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]