Community discussion forum

Session Expire in asp.net

  • 6 months 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
    Post was edited on 02/05/2009 20:54:53 Report abuse
  • 6 months 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
  • 6 months ago
    I think you write this code in global.asx file
  • 6 months 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).

We'd love to hear what you think! Submit ideas or give us feedback