Solved

Session variables lost

Posted on 2008-10-06
4
144 Views
Last Modified: 2012-05-05
I have a web app that with some users the session variables always return null almost right away after setting them. In this case I have 15 users and only one has this problem. Does anyone know a way to store values that can be called at any time for just that one user during that session without using session variables? Public shared variables span across all users right?
0
Comment
Question by:jimseiwert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Expert Comment

by:MoreHeroic
ID: 22649352
Well, what is different about this one user?  That's where I would start.  My guess is that they aren't storing the asp.net session cookie.  Why not try adding the site as a trusted site for the one user, or maybe check out cookieless app settings.
0
 
LVL 10

Expert Comment

by:MoreHeroic
ID: 22649365
Here is a little more information about cookieless configuration:

http://msdn.microsoft.com/en-us/library/aa479315.aspx
0
 
LVL 13

Expert Comment

by:TechTiger007
ID: 22651059
Session variables are stored in server memory so it will not be affected by the browser settings.
Check the name of the session variable used to set and retrieve the value.. If you want non session solution you could use

hidden control in the page,
query string or
cookies

0
 
LVL 10

Accepted Solution

by:
MoreHeroic earned 500 total points
ID: 22651689
If you really want something that will let you store off variables that every user will have access to ("Public shared variables span across all users right?") you should look at the application object and the cache object:

http://support.microsoft.com/kb/309018

Something per session per user would make sense in the session variable as long as your not trying to replace a database with the session variables.  Then you would run into an issue with memory footprint being too large.  Anyway, the reason I would look at the one individual's machine is because they are the only individual who is experiencing difficulties, and their browser settings could affect .Net's ability to track the user between requests which would manifest itself as lost session variables.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question