protected void btn_fourthPage_Click(object sender, EventArgs e) { try { HttpContext.Current.Session["fourthpage"] = "4"; Response.Redirect("~/LoginPage.aspx",false); } catch (Exception ex) { Response.Write(ex.Message); } }
Quote:ASP.NET uses an 120 bit identifier to track each session. This is secure enough and can't be reverse engineered. When a client communicates with a server, only the session ID is transmitted between them. When the client requests for data, ASP.NET looks for the session ID and retrieves the corresponding data. This is done in the following steps: -Client hits the web site and information is stored in the session. -Server creates a unique session ID for that client and stores it in the Session State Provider. -The client requests for some information with the unique session ID from the server. -Server looks in the Session Providers and retrieves the serialized data from the state server and type casts the object.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)