how do you manage session in asp and asp.net

  • Thread starter Thread starter SivaSaiKrishna. Avvaru
  • Start date Start date
how do you manage session in asp and asp.net

In .NET it's very simple. Add a session variable like
Session["var_name"]="all you want";
then when you want retrieve it do: string var=Session["var_name"];
Remember that you can insert object inside session, but when you retrieve it you must cast in the right type. Don't forget that session isn't unlimited in time.
 
how do you manage session in asp and asp.net

Session in ASP is easy and session in ASP.NET is easy.

If you want to share a session between ASP and ASP.NET, then it depends
a lot on what version of IIS you are using.

Arne
 
Back
Top