session time

J

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
 
B

Bob Barrows [MVP]

Jeff said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,609
Members
45,254
Latest member
Top Crypto TwitterChannel

Latest Threads

Top