how do you manage session in asp and asp.net

  • Thread starter SivaSaiKrishna. Avvaru
  • Start date
G

giganerds

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.
 
A

Arne Vajhoej

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top