Home All Groups Group Topic Archive Search About


Author
18 Mar 2006 1:47 PM
Jeff
Question. How would I go about increasing the session time of a user, before
they are logged out for inactivity?

The reason I want to do this, is because players may have the site open,
while actually playing a game. But when they come back to report, they are
no longer logged in, but it appears that they are.

I assign the cookie when they login using the following code:

response.cookies("username") = username
        Response.Cookies("username").Expires=#May 1,2020#
But I don't remember writing anything that says how long the session is for.
I think default is 30 minutes?

can someone help?
Thanks
Jeff

Author
18 Mar 2006 2:16 PM
Bob Barrows [MVP]
Jeff wrote:
Show quote
> Question. How would I go about increasing the session time of a user,
> before they are logged out for inactivity?
>
> The reason I want to do this, is because players may have the site
> open, while actually playing a game. But when they come back to
> report, they are no longer logged in, but it appears that they are.
>
> I assign the cookie when they login using the following code:
>
> response.cookies("username") = username
>        Response.Cookies("username").Expires=#May 1,2020#
> But I don't remember writing anything that says how long the session
> is for. I think default is 30 minutes?
>

This was easily found by searching at aspfaq (hint, hint <grin>):
http://www.aspfaq.com/show.asp?id=2066
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

AddThis Social Bookmark Button