Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Experts !!

I have a Web Application in asp.net C#, SqlServer 2005.

If the user Login the application and checks all the details and he didnt log off it.

and If the Users is not Accessing the application or he went outside somewhere...It should automatically come to login page again.

Again the User should enter Username and PWD Password to access the application.


Please can u you help me how to do this.
Posted
Updated 8-Jun-12 20:37pm
v3

 
Share this answer
 
Comments
VJ Reddy 9-Jun-12 2:40am    
Good references. 5!
Shahin Khorshidnia 9-Jun-12 2:53am    
Thank you very much VJ :)
you use session state. if the user is idel for some time which you set in Webconfig file , the session destroy and come again on login page.
 
Share this answer
 
v3
Comments
Ranjith Reddy CSE 9-Jun-12 3:48am    
Please can you show me how to do this....am beginner.
[no name] 9-Jun-12 5:36am    
<sessionstate timeout="30" mode="InProc">
<sessionstate>
put this Above <pages> tag. and also set the time as your requirement.
this is the to user become idel and then after return to the home page.

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