Try this

sri sri replied to Jobi K John at 09-May-08 04:46
Hi,
Check is session variable is null then redirect to sessionExpired.aspx

try this

protected void Page_Load(object sender, EventArgs e)
{
    if (Convert.ToString(Session["Login"])!="1")
  {
      Response.Redirect("~/SessionExpired.aspx",false);
  }
}

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Session time out & Session end - Jobi K John  08-May-08 02:04 2:04:04 PM
      no - santhosh kapa  08-May-08 02:44 2:44:19 PM
      Session End is fired independently at the server - Peter Bromberg  08-May-08 03:05 3:05:07 PM
      `to redirect on session timeout - mv ark  08-May-08 10:09 10:09:14 PM
      use Session.Abandon(); - Vasanthakumar D  09-May-08 12:34 12:34:37 AM
      Try this - sri sri  09-May-08 04:46 4:46:30 AM
      This isn't an exact science but JavaScript can work well - Robbe Morris  09-May-08 12:25 12:25:40 PM
View Posts