Click here to Skip to main content
15,896,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In asp.net session i used the timeout to the session will it works? when paritcular login is logout to the page :)
Posted
Comments
Sandeep Mewara 5-Jul-10 10:15am    
Your question is not quite clear. What are you trying to ask?
anupkulkarni85 5-Jul-10 10:18am    
i am session.abondan() is not working so i used the timeout=0;

1 solution

Just in case, go through this article about Sessions in ASP.NET and you will get a good idea about them:
Exploring Session in ASP.Net[^]
 
Share this answer
 
Comments
anupkulkarni85 6-Jul-10 0:55am    
i need that will it worked or not
Sandeep Mewara 6-Jul-10 1:00am    
1. timeout=0 means never timeout the session.
2. Session.Abandon and timeout has totally different things to play.

Whenever you logout, call Sessions.Clear(); in your logout link event call. That should do for you.
anupkulkarni85 6-Jul-10 2:11am    
ok
anupkulkarni85 6-Jul-10 2:33am    
When i copy the url and logout and then again go to the page without authication.
Sandeep Mewara 6-Jul-10 2:57am    
What is your logic of logging in? Update your question with Pageload code.

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