Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lost session variables

Status
Not open for further replies.

diggy8

IS-IT--Management
May 24, 2002
35
US
I'm working on an intranet application that let's employees update the status of applications they're working on. It uses session variables to pass the application ID between the different update pages. I defined the session variables in application.cfm and most of the time it works fine. But in two of the labs here, once in a while, a user won't get a session variable. They'll go to the page that creates the variable, then to the next and it says that "appID is undefined in session".

It works everywhere else just fine all the time. It's just in these two labs once in a while that the error comes up. any ideas? Our CF server (6.0) isn't that powerful, could it be there's a limit to the number of sessions open at once?
 
Sounds more like a cookies issue on the client computers.
If you have the security settings in the browser at medium or higher then the browser will only accept cookies from trusted sites.

The session object is a type of cookie. If the cookie can't be created, then there isn't a session object.

If you don't want to change the security settings on the browser then list your site as a trusted site on the browser.

In IE you would click on tools then Internet options, then the Security Tab, then click on the green circle with the check mark in it, that will activate the "Sites" button. Click on the Sites button, enter your site address (uncheck the requires https check box if your site is not a secure site) then click the Ok button, Then click the OK button on the next screen, then close the browser, open it up again and it should work now.

"Every day is like a precious gift, you have to make it count" James Birrell 1993-2001
 
That was my take on it too... though the "once in a while" throws me. If a browser is set to accept cookies, it will accept cookies... it won't accept cookies most of the time and then "every once in a while" decide not to accept them.

Jeepxo has great tips on setting browser security. Hopefully that will fix the problem. If not, it may be something a little more deeply rooted.


-Carl
 
Thanks for the help. I'm just waiting now for someone to have the problem so I can test these out. Everyone's logging on to different machines, some with WinXP, some with WinNT, IE 5.5 and 6.0, and on two different domains within our network. I thought it might be a problem with all that, but I like the idea of it being with browser security, that makes sense. Thanks again, I'll let you know!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top