Hi ,
The following code describes the session state as follows,
I m maintaining a session in "Login Page" of my application. Now I m using this in my aspx page in PageLoad look like.....
if (Session["User_ID"] == null || Session["User_ID"].ToString() == "")
{
Response.Redirect("Login.aspx?LE=Expire");
lblMsg.Text="Your Session Expires!";
}
I m setting Session Timeout in Web.config.
Now, When session time expire, its goes to "Login Page" with proper message.....
But When I m putting URL of that page directly in the browser, its again goes to "Login Page" with message.....
The problem is that I don't want the message, its simply goes to "Login Page" without message....
Thnax
Amitsoni, if this helps please login to Mark As Answer. | Alert Moderator