Default1.aspx
protected void Button1_Click1(object sender, EventArgs e)
{
Session["name"] = TextBox1.Text;
Response.Redirect("Default2.aspx");
}
Default2.aspx
protected void Page_Load(object sender, EventArgs e)
{
string sBeforeAbandon;
string sAfterAbandon;
sBeforeAbandon = Session["name"].ToString ();
Session.Abandon();
if (Session["name"] != null)
{
sAfterAbandon = Session["name"].ToString();
}
Hey frnds Session.Abandon clears all the session on the next page,If i access suppose this session value in Defaul3.aspx,then session value is not retrieved..But i also want that in sAfterAbandon value cannot be access,Which statement i have to write above this statement,so dat i m not able to access d session??
Secondly tell me dat is there any method Session.kill() in ASP.net????