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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loosing session variables

Status
Not open for further replies.

hotcold

Programmer
Dec 7, 2000
14
0
0
FR
Hi!

A strange problem has appeared on our web site. It looks as if we were loosing some session variables :
they are set and then from one page to an other become undefined whereas some other session variables are still there.

The timeout of the session variables is set to 20 minutes so that can't be the problem.
To make things easier it doesn't happend systematically but is still really worrying since it is annoying for the user...

Did some of you had the same trubbles? Any idea where it comes from and how to solve this problem?

Please help!
Thanks.


 
Difficult to answer without more information.
Usually this type of problem is caused by a coding or logical error, especially when some session variables are still present (which means that ColdFusion has retained the session id for the user).

A classic problem that can cause this effect is assuming that a user will take predefined path through your pages. What happens if the user navigates the pages in the wrong order, uses the browser back button, or booksmarks a page in the middle of the sequence.
 

This happened to me once because I had cookies turned off and did a <CFLOCATION * addtoken=&quot;No&quot;>

If you turn off Cookies and don't pass the token the variables will be lost.

Hope it helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top