.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Steve Jackman
Imran Ghani
Santhakumar Munuswamy

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How To Redirect To Login Form?

Posted By: Mallikarjuna Chigicherla     Posted Date: August 04, 2010    Points:2   Category :ASP.Net
How to redirect to Login Form After default session time Expires.please provide sample code ?

Thanks in Advance


Responses
Author: Ramesh durai          Accepted Answer   
Posted Date: August 04, 2010     Points: 10   

after session expires when we click any object on that page it automatically redirect to login page.

add below code in page load event.

if(session("user") != "")
{
}
else
{
response.redirect("../login.aspx");
}

Ramesh durai


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend