Home | Articles|Namespace|Interview Questions|Tools|Jobs|Projects|Community
Asp.net Tutorials

»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books

»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects

»Competition
Community
Winners
Prizes
Write For Us
Members

»Other Resources
Links
Dotnet Resources


Forums»C# .NET »



session

how to redirect to login page after the session expires
posted by:anonymous on 10/8/2007 5:26:31 AM
redirect to login page after the session expires

//Write this code, on top of the page//
//*** Return to Login.aspx page if Session["anysession"] is null or blank. ***//

Response.Expires = -1;
if (Session["anysession"] == null)
{
Server.Transfer("Login.aspx");
}


Enjoy :)
posted by:Rajendra  on 10/10/2007 2:39:30 AM
© 2008 dotnetwatch.com -- Privacy policy

Website Design & Internet Marketing by Shivam