IIS ASP - session time

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > March 2006 > session time





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author session time
Jeff

2006-03-19, 12:02 pm

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


Bob Barrows [MVP]

2006-03-19, 12:02 pm

Jeff wrote:
> 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"


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com