469,290 Members | 1,913 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

unwanted session timeout

I have a simple form connecting to an Access database where users log in,
fill out the form, and submit. Everything works fine.

However, sometimes it takes a user 20 minutes or more to fill out the form.
When the user then hits "submit" he is given the login page instead of the
response page I have built in. If the user fills the form out in less than
20 minutes or so, it works fine.

I have Session.Timeout=720 (2 hours) but this hasn't changed anything.

Does anyone know what I'm missing? I'm pretty new at asp so forgive me if
it's something simple.

Thank you in advance,
Rob
Jul 19 '05 #1
7 4020
....12 hours - sorry.

Rob
Jul 19 '05 #2
As I continue to research, I have learned that session timeouts should be
handled with care. The 12 hour setting was only experimental and no one is
using this test asp page at the moment. I have also now reset the
session.timeout to 30 minutes.

However my problem remains. I would like to give users about 45 minutes to
fill out the form without being kicked out of their session, and
session.timeout=45 does not seem to work.

Any suggestiions greatly appreciated.
Rob


Jul 19 '05 #3
How about creating a cookie for the user, when they hit submit, if their
session is invalid, give them a new one based on the content of their
cookie.

"Racer X" <> wrote in message news:Ng********************@comcast.com...
I have a simple form connecting to an Access database where users log in,
fill out the form, and submit. Everything works fine.

However, sometimes it takes a user 20 minutes or more to fill out the form. When the user then hits "submit" he is given the login page instead of the
response page I have built in. If the user fills the form out in less than 20 minutes or so, it works fine.

I have Session.Timeout=720 (2 hours) but this hasn't changed anything.

Does anyone know what I'm missing? I'm pretty new at asp so forgive me if
it's something simple.

Thank you in advance,
Rob

Jul 19 '05 #4
"TomB" <sh*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How about creating a cookie for the user, when they hit submit, if their
session is invalid, give them a new one based on the content of their
cookie.


Thanks for that, but as a newbie I'm not quite sure I follow...

Are you saying re-log them in invisibly based on cookie data? That might
work to get them logged back in, but their data is still lost. (Not actually
lost as it can be recovered via the back button, but most users "think" it's
lost.)

In your suggestion will the users not "lose" their data and be directed
straight to my response page, and if so could you enlighten me a little
more?

Thanks!
Rob

Jul 19 '05 #5
you can also set the default time-out in the properties of the website
itself.
"Racer X" <> wrote in message news:94********************@comcast.com...
As I continue to research, I have learned that session timeouts should be
handled with care. The 12 hour setting was only experimental and no one is using this test asp page at the moment. I have also now reset the
session.timeout to 30 minutes.

However my problem remains. I would like to give users about 45 minutes to fill out the form without being kicked out of their session, and
session.timeout=45 does not seem to work.

Any suggestiions greatly appreciated.
Rob

Jul 19 '05 #6
"HarryD" <mo*******@hotmail.com> wrote in message
news:3f*********************@dreader5.news.xs4all. nl...
you can also set the default time-out in the properties of the website
itself.


Could you tell me how to do that? I control the website, but not the web
server as it is hosted with an ISP.

Thanks.
Rob

Jul 19 '05 #7
how about this.

Have no session timeout at all. Turn that off.

Then assuming the user is logged into a domain,

Check the rights of the request.variables("logon_user")
against the user database.
That will handle your security, as well as your timeout

"Racer X" <> wrote in message news:SF********************@comcast.com...
"TomB" <sh*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How about creating a cookie for the user, when they hit submit, if their
session is invalid, give them a new one based on the content of their
cookie.
Thanks for that, but as a newbie I'm not quite sure I follow...

Are you saying re-log them in invisibly based on cookie data? That might
work to get them logged back in, but their data is still lost. (Not

actually lost as it can be recovered via the back button, but most users "think" it's lost.)

In your suggestion will the users not "lose" their data and be directed
straight to my response page, and if so could you enlighten me a little
more?

Thanks!
Rob

Jul 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Geigho | last post: by
4 posts views Thread by DavidS | last post: by
8 posts views Thread by Joe Abou Jaoude | last post: by
11 posts views Thread by Vishal | last post: by
5 posts views Thread by Just D. | last post: by
17 posts views Thread by jensen bredal | last post: by
25 posts views Thread by =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.