Session Expire in asp.net

session expired , session expire , asp.net Etāwah, India
  • 11 years ago
    hi, i m a beginner of asp.net so my problem will be easy for all of u but not for me so plz help me as simply as u can. i m trying to expire a session when its time out and redirect user to a html page just for message . how n where should i write code for it...... Thanks
  • 11 years ago
    hi, i m a beginner of asp.net so my problem will be easy for all of u but not for me so plz help me as simply as u can. i m trying to expire a session when its time out and redirect user to a html page just for message . how n where should i write code for it...... Thanks
  • 11 years ago
    I think you write this code in global.asx file
  • 11 years ago
    Wite your redirection code in global.asax.cs (if your using c#) in the Session_End method. example: protected void Session_End(Object sender, EventArgs e) { Response.Redirect("redirect.aspx"); }

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'” - Isaac Asimov