G
Guest
BackGround:
- We are new to ASP
- We thought we would experiment with using the session object (in proc) to store a small amount of data.
- We get different results when cookieless is set to "true" veses "false".
- Our simple test app involved updating a counter that was stored as an item in the Session Object. We allow resetting the counter to zero, and adding or subtracting one from the counter.
- We were trying to determine when a "NEW Session" is created -- so we kept in our App adding and resetting and subtracting. After each we displayed the values and everything worked fine. When the user entered a URL for a different site (Goggle.com) and then entered the URL for our page -- initially we see that the counter was reset to zero through our logic in the "Page_Load" routine for a new session.
- When using Session option of Cookieless = 'false', when we do an add it picks up the previous Counter Value that was used before we went to the other Web site (Goggle.com). This is confusing because we use the Session Counter field to display the Counter when 1st returning to this page and it displays a value of Zero. We also noticed that the Session ID does not change but "Session.IsNewSession" property is set to True.
- When using Session option of Cookieless = 'true', when we do an add it picks up the new initialized Counter Value (Zero) that was set in "Page_Load" after returning from the Web site (Goggle.com). In this case we see a new SessionID and the "Session.IsNewSession" property is set to True.
If you would like to see this in action where "SessionState" cookieless option ="false" you can use the following link.
http://www.hoffmanngroupservices.com/SimpleSessionTest/SSTHomePage.aspx
Thanks
Dinkster
- We are new to ASP
- We thought we would experiment with using the session object (in proc) to store a small amount of data.
- We get different results when cookieless is set to "true" veses "false".
- Our simple test app involved updating a counter that was stored as an item in the Session Object. We allow resetting the counter to zero, and adding or subtracting one from the counter.
- We were trying to determine when a "NEW Session" is created -- so we kept in our App adding and resetting and subtracting. After each we displayed the values and everything worked fine. When the user entered a URL for a different site (Goggle.com) and then entered the URL for our page -- initially we see that the counter was reset to zero through our logic in the "Page_Load" routine for a new session.
- When using Session option of Cookieless = 'false', when we do an add it picks up the previous Counter Value that was used before we went to the other Web site (Goggle.com). This is confusing because we use the Session Counter field to display the Counter when 1st returning to this page and it displays a value of Zero. We also noticed that the Session ID does not change but "Session.IsNewSession" property is set to True.
- When using Session option of Cookieless = 'true', when we do an add it picks up the new initialized Counter Value (Zero) that was set in "Page_Load" after returning from the Web site (Goggle.com). In this case we see a new SessionID and the "Session.IsNewSession" property is set to True.
If you would like to see this in action where "SessionState" cookieless option ="false" you can use the following link.
http://www.hoffmanngroupservices.com/SimpleSessionTest/SSTHomePage.aspx
Thanks
Dinkster