September 09, 2010, 02:09:43 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Media Affiliates Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Session lost on postback? .NET 2.0 ASP.NET  (Read 4093 times)
0 Members and 1 Guest are viewing this topic.
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
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
Javaforums.net :: a community about Java software development.
« on: July 09, 2009, 07:46:11 PM »

Your Ad Here
 Logged
OutRunner
Javaforums.net Friend
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
Javaforums.net :: a community about Java software development.
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.546 seconds with 34 queries.

Google visited last this page September 01, 2010, 09:38:42 PM