Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
How to submit form after timeout?
Old 06-09-2004, 01:05 PM How to submit form after timeout?
Junior Talker

Posts: 1
Trades: 0
I know there is probably a simple way to do this, but I haven't found it yet!

How can I submit data from a form after a session has timed out?

Situation: User is logged in with ID and password, and enters data in a form. User walks away from PC, and session times out. User then returns and clicks "Submit".

How do I submit the form data ? The user would have to re-enter his login ID and password first, and then I would want the form data submitted.

I cannot do an auto-submit before timeout in case the user doesn't want to save that info (it's a timesheet application).

Suggestions?
Lyragirl is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-09-2004, 10:50 PM Store userid
The Dorian's Avatar
Skilled Talker

Posts: 74
Location: Orange County, California
Trades: 0
I assume the problem you're encountering is that you've stored the userID in session, and now that the session has expired you don't know who the user is. If that's the case, there are two ways you can fix this.

1. Store the userID in a cookie. When the user submits the form, the userID stored in the cookie will be available.

2. Add a hidden field into the form and prepopulate it with the userID. When the form is submitted, you can read the userID from the hidden field and save it.

Hopefully this helps
__________________
Dorian Collier

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
The Dorian is offline
Reply With Quote
View Public Profile Visit The Dorian's homepage!
 
Reply     « Reply to How to submit form after timeout?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25533 seconds with 12 queries