Click here to Skip to main content
15,921,884 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to preserve the values of textboxes after session timeout
Posted
Comments
Kenneth Haugland 2-Aug-12 11:06am    
Stor them in a database or txt file?
invisible@123 2-Aug-12 11:10am    
but if before submitting in database if session timeout then what to do.i have 2 page Registration,and page1.aspx initially only registration value are store in db .then it redirect to page1.if session time out during page1 how to preserve value of textbox

1 solution

Its seems simple to me depending on what you are trying to save, just have the client browser save what they type in your cookie. Or did you mean on the server itself? That could be a problem.

If I misunderstand you want the user to have his stuff saved and ready to go for the next time he/she logs in? When your session times out on a server its for when people log off so that hackers can't use session hijacking via man in the middle attacks, so there's not really a point to this unless you need to.

Hope this helps!

So again

1. Save the info in the textbox or whatever in the cookies

OR
2. Save their stuff everytime they press a key in the textbox
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900