Hi
You're setting the "session.dog" variable to "Black" EACH time in your
application file,
and in your test.cfm file to "Blue" AFTER it's outputted. So when you output
it, it's set to "black".
use <cfparam name="session.dog" default="black"> in the application.cfm
file,
and <cfset session.dog = "blue"> BEFORE <cfoutput>#session.dog#</cfoutput>
in the test.cfm file.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Kronenberger, Douglas
Sent: 11. mai 2001 15:50
To: CF-Talk
Subject: Session Variables - I don't get it
Greetings,
I'm not getting how to implement session variables. I'm just trying to set
the session variable "Session.Dog" from black to Blue and have it show up as
Blue on the test.cfm. It keep show'n up black. I do have Session Variables
enabled via the CF Administrator page.
What am I miss'n here.
<!--- Application.CFM --->
<cfapplication name="TEST" sessionmanagement="Yes" setclientcookies="no">
<cflock scope="session" timeout="2">
<cfset Session.Dog = "Black">
</cflock>
<!--- Test.CFM --->
<html>
<body>
<cflock scope="session" timeout="2">
<cfoutput> #Session.Dog# </cfoutput>
<cfset #Session.Dog# = "Blue"><br>
</cflock>
<cflock scope="session" type="readonly" timeout="2">
<a href="test2.cfm?<cfoutput>#Session.URLTOKEN#</cfoutput>" > Goto</a><br>
</cflock>
</body>
</html>
<!--- Test2.CFM --->
<html>
<body>
<cflock scope="session" timeout="2">
<cfoutput> #Session.Dog# </cfoutput>
</cflock>
<br>
</body>
</html>
-----------------------------------------------------------------
Can someone get me started here.
Thanks
> Doug Kronenberger
> OI National Training and Education Office
> 440-526-3030 x7776
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists