2
Answers

Session Question ? and problem :/

jimy arsenal

jimy arsenal

12y
1.2k
1
Hi , Can i store 2 or more Session ..
When i do a webpage with 2 Session i get errors like :

Object reference not set to an instance of an object...

But when i have 1 session everything works fine..
how can i store more than 2 Session .. im sorry for my bad english..


WEB1
Session["Roli"] = f1txtRoli.Text;
Page.Response.Redirect("Faqja2.aspx");

Session["Emri"] = f1txtEmri.Text;
Page.Response.Redirect("Faqja2.aspx");


WEB2(FAQJA2.aspx)


f2txtRoli.Text = Session["Roli"].ToString();          
f2txtEmri.Text = Session["Emri"].ToString();


Answers (2)