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

Problem with session variables

Status
Not open for further replies.

DrStern

Programmer
Mar 28, 2003
53
US
HI there,

This is my case, I’m assigning some value to my session variable in a parent window. Like this:

<cfset session.mySessionVariable = “x”>

Then, in a popup, I am assigning that value to another variable. As in:

<cfset otherVariable = session.mySessionVariable>

Then, after a snippet of code, I initialize the session variable. As in:

<cfset session.mySessionVariable = “”>

Then I close the popup.

That works fine. But when “x” changes its value, that is, session.mySessionVariable changes in the parent window and I open the popup again, session.mySessionVariable keeps the old value from the previous time that I pop it up.

Do you guys know what’s wrong with it?

Thank you!!!


Dr. Stern
 
Are you locking the session variable correctly?

If you only use read access the variable will not update.

Take a look at the CFLOCK
 
I might suggest cache issues..

Have you tried right-click >> Refresh and seeing if the value changes?

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top