Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
hello friends

i created the admin panel. using authentication i want to create session time out to username. please give me solution about how to do?
Posted

 
Share this answer
 
Comments
beginner in C#.net 31-May-11 3:53am    
the links were in vb i want it these example in c#
That's Aragon 31-May-11 4:00am    
There are many free converters are available like this http://www.developerfusion.com/tools/convert/vb-to-csharp/ to convert code from vb to C# or vice versa.
C#
if(Session["Session_name"]==null)
Response.Redirect("Login.aspx");

put this code in masterpage
 
Share this answer
 
v3

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