Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]   Go Down
  Print  
Author Topic: Session lost on postback? .NET 2.0 ASP.NET  (Read 3022 times)
0 Members and 2 Guests are viewing this topic.
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

WWW Awards
« on: July 09, 2009, 07:46:11 PM »

Hi,

I'm creating a new session object in an ASP.NET page but the session is lost once the page is reloaded. I thought sessions would be maintained but appearantly it doesn't. Does anyone know how to maintain session objects in .NET 2.0 ASP.NET ?

Lets say I create a sessionObject session.
Session.add("sessionObject", "sessionValue");

When i refresh the page i call the session object with Session["sessionObject"].ToString(); Any idea what this doesn't work and what im overlooking?
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
OutRunner
Moderator
Member
*
*

Reputation: 0
Offline Offline
Gender: Male
Posts: 130
Referrals: 0

Awards
« Reply #1 on: July 22, 2009, 10:51:24 AM »

Sessions should be maintained as long as the browser is running and the session timeout limit is not exceeded.

Do you get any value from your session after a 2nd refresh/reload?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here