Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to give expiry date of user account in web application...
Posted

For the expiry date of useraccount you can think of either of these following

a) mark a expiry date field in database for the user, read the same expiry date on page load and either let the page load or redirect to previous page/ login page if the user account has expired expire.
b) you can use session where you can use code for session.expire(time).

better solution is to read data from database but in case you do not have enough rights on database and if u cannot change the database design go for session.

Hope the ans will give u a right direction.

thanks
Amit
 
Share this answer
 
v2
You need to set a session timeout for a web page.
For more information on sessions, go through
http://msdn.microsoft.com/en-us/library/ms178581.aspx[^]
http://msdn.microsoft.com/en-us/library/ms972429.aspx[^]
ASP.NET Session Management Internals[^]
 
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