Re: Session Variables in asp.net
- From: "Michael D. Ober" <obermd.@.alum.mit.edu.nospam.>
- Date: Thu, 9 Jul 2009 14:26:47 -0600
There is another possibility that involves session variables and connections to legacy systems. IIS doesn't guarantee thread identity between pages. If your session variable creates a link to a mainframe it is possible that the link is being lost between pages.
Mike Ober.
"Angel J. Hernández M." <angeljesus14@xxxxxxxxxxx> wrote in message news:529447A2-3F5A-49A7-BAFA-2A5B93179DE5@xxxxxxxxxxxxxxxx
Session variables will exist as long as the session does. What you just mentioned doesn't make much sense, can you please provide your code so we can help you?
Regards,
--
Angel J. Hernández M
MCP,MCAD,MCSD,MCDBA
Microsoft MVP
http://msmvps.com/blogs/angelhernandez
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
http://www.customware.net
Tecnical Solutions Architect
"Mark Brown" <mbrown@xxxxxxxx> wrote in message news:#nkNLGb9JHA.1248@xxxxxxxxxxxxxxxxxxxxxxxI've encountered a problem that is very frustrating. I'm working on a web page and storing data in a session variable. I've done this in many other programs done with with no problems, so hitting this snag took me by surprise. I'm using VS 2008.
In my current project however, the session variable I'm trying to use seems to disappear after clicking a button. I could run my query again, but that's why I use session variables to reduce hits to the database.
If I access the session variable before causing the page to reload by clicking on a button, I can retrieve the value.
What should I look for?
Thanks,
Mark
.
- Prev by Date: Re: inputbox
- Next by Date: Re: inputbox
- Previous by thread: Help with Marshal.FreeCoTaskMem
- Next by thread: Capture events for a control array
- Index(es):