Thanks for that reminder... it's been years since
I've even used cflocation! My how knowledge, unused,
is fleeting...

-----Original Message-----
From: Azadi Saryev [mailto:azadi.sar...@gmail.com] 
Sent: Monday, February 27, 2012 9:20 PM
To: cf-talk
Subject: Re: Session variables not working


In your <cflocation> tag include addtoken="no" attribute to prevent
CFID/CFTOKEN vars from being appended to the url.

I'll also suggest you set your server to use J2EE sessions in CF
Administrator, if you have not done so already.

Azadi

On Tue, Feb 28, 2012 at 04:36, Rick Faircloth <r...@whitestonemedia.com>
wrote:
>
> Well, after quickly throwing together an application.cfc,
> I can see that it is necessary.  It attached the CFID
> and CFTOKEN to the URL.
>
>
> -----Original Message-----
> From: Rick Faircloth [mailto:r...@whitestonemedia.com]
> Sent: Monday, February 27, 2012 3:29 PM
> To: cf-talk
> Subject: RE: Session variables not working
>
>
> There's no application.cfc at this point...the only
> two pages involved are what's in this email.
>
> Is enabling session management in an application.cfc
> necessary for session management to work?
>
> As you can see below when I use:
>
> <cfset session.name = 'rick'>
>
> and then output that with:
>
> <cfoutput>#session.name#</cfoutput>
>
> I get 'rick'...
>
> But that's on the same page.
>
> Would that work but not session variables between pages
> with session management being enabled in application.cfc?
>
> Rick
>
> -----Original Message-----
> From: Steve Milburn [mailto:scmilb...@gmail.com]
> Sent: Monday, February 27, 2012 3:18 PM
> To: cf-talk
> Subject: Re: Session variables not working
>
>
> Have you enabled session management in the application.cfc?
>
> On Mon, Feb 27, 2012 at 3:14 PM, Rick Faircloth
> <r...@whitestonemedia.com>wrote:
>
>>
>> It's been awhile since I used session variables,
>> but this is simple.  Why won't this work?
>>
>> session-test.cfm
>> ----------------
>>
>> <cfset session.name = 'rick'>
>>
>> <cfoutput>#session.name#</cfoutput>
>>
>> <cflocation url="session-test-2.cfm">
>>
>>
>> session-test-2.cfm
>> ------------------
>>
>> <cfoutput>#session.name#</cfoutput>
>>
>>
>> I get the error 'Element NAME is undefined in SESSION.'
>>
>> ???
>>
>> Session variables are specified for use in CFADMIN.
>> Am I missing something REALLY simple or obvious?
>>
>> Rick
>>
>>
>>
>>
>
>
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350125
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to