English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have developed a user login page. I have Five to Six Secure page. I want that.

When a user login then I want check its existance for all pages as well as session that any how Session Expires or not.

I have used FormsAuthentication technique....

My current technique is working well but when i click on Signout() it return back to Login page but when I am Clicking on BackButton on IE then Its go to securepage.

I want that once logout no one can access secure page any how.

thanks in advance

2007-02-09 00:23:06 · 1 answers · asked by Jack J 1 in Computers & Internet Programming & Design

1 answers

I just do it something like this:

private void Page_Load(object sender, System.EventArgs e)
{
try
{
string trystring = Session["userid"].ToString();
} // close try

catch (System.NullReferenceException)
{
Response.Redirect("login.aspx?redirect=favorite_ads.aspx");
} // close catch
}// close Page_Load

2007-02-09 09:38:04 · answer #1 · answered by King Awesome 2 · 0 0

fedest.com, questions and answers