Re: Session variables not working

2012-02-27 Thread Steve Milburn

Have you enabled session management in the application.cfc?

On Mon, Feb 27, 2012 at 3:14 PM, Rick Faircloth wrote:

>
> It's been awhile since I used session variables,
> but this is simple.  Why won't this work?
>
> session-test.cfm
> 
>
> 
>
> #session.name#
>
> 
>
>
> session-test-2.cfm
> --
>
> #session.name#
>
>
> 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:350110
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Session variables not working

2012-02-27 Thread Rick Faircloth

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:



and then output that with:

#session.name#

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
wrote:

>
> It's been awhile since I used session variables,
> but this is simple.  Why won't this work?
>
> session-test.cfm
> 
>
> 
>
> #session.name#
>
> 
>
>
> session-test-2.cfm
> --
>
> #session.name#
>
>
> 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:350112
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Session variables not working

2012-02-27 Thread Russ Michaels

yes you must have an application.cfm/cfc in order to enable session
variables.

On Mon, Feb 27, 2012 at 8:28 PM, Rick Faircloth wrote:

>
> 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:
>
> 
>
> and then output that with:
>
> #session.name#
>
> 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
> wrote:
>
> >
> > It's been awhile since I used session variables,
> > but this is simple.  Why won't this work?
> >
> > session-test.cfm
> > 
> >
> > 
> >
> > #session.name#
> >
> > 
> >
> >
> > session-test-2.cfm
> > --
> >
> > #session.name#
> >
> >
> > 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:350114
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Session variables not working

2012-02-27 Thread Rick Faircloth

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:



and then output that with:

#session.name#

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
wrote:

>
> It's been awhile since I used session variables,
> but this is simple.  Why won't this work?
>
> session-test.cfm
> 
>
> 
>
> #session.name#
>
> 
>
>
> session-test-2.cfm
> --
>
> #session.name#
>
>
> 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:350115
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Session variables not working

2012-02-27 Thread Steve Milburn

You will need an application.cfc (or .cfm) for session variables to work.

In your example, your  was actually stored in
the variables scope on that page as variables.session.rick, and not
actually in the session scope.  That is why it was not available on the
other page.

On Mon, Feb 27, 2012 at 3:28 PM, Rick Faircloth wrote:

>
> 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:
>
> 
>
> and then output that with:
>
> #session.name#
>
> 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
> wrote:
>
> >
> > It's been awhile since I used session variables,
> > but this is simple.  Why won't this work?
> >
> > session-test.cfm
> > 
> >
> > 
> >
> > #session.name#
> >
> > 
> >
> >
> > session-test-2.cfm
> > --
> >
> > #session.name#
> >
> >
> > 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:350116
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Session variables not working

2012-02-27 Thread Steve Milburn

Correction on my previous post:

The variable was stored in variables.session.name (not
variables.session.rick)...  but you probably knew what I meant.. ;-)



On Mon, Feb 27, 2012 at 3:39 PM, Steve Milburn  wrote:

> You will need an application.cfc (or .cfm) for session variables to work.
>
> In your example, your  was actually stored
> in the variables scope on that page as variables.session.rick, and not
> actually in the session scope.  That is why it was not available on the
> other page.
>
>
> On Mon, Feb 27, 2012 at 3:28 PM, Rick Faircloth 
> wrote:
>
>>
>> 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:
>>
>> 
>>
>> and then output that with:
>>
>> #session.name#
>>
>> 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
>> wrote:
>>
>> >
>> > It's been awhile since I used session variables,
>> > but this is simple.  Why won't this work?
>> >
>> > session-test.cfm
>> > 
>> >
>> > 
>> >
>> > #session.name#
>> >
>> > 
>> >
>> >
>> > session-test-2.cfm
>> > --
>> >
>> > #session.name#
>> >
>> >
>> > 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:350117
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Session variables not working

2012-02-27 Thread Rick Faircloth

Thanks for the reminder!

Rick

-Original Message-
From: Steve Milburn [mailto:scmilb...@gmail.com] 
Sent: Monday, February 27, 2012 3:42 PM
To: cf-talk
Subject: Re: Session variables not working


Correction on my previous post:

The variable was stored in variables.session.name (not
variables.session.rick)...  but you probably knew what I meant.. ;-)



On Mon, Feb 27, 2012 at 3:39 PM, Steve Milburn  wrote:

> You will need an application.cfc (or .cfm) for session variables to work.
>
> In your example, your  was actually stored
> in the variables scope on that page as variables.session.rick, and not
> actually in the session scope.  That is why it was not available on the
> other page.
>
>
> On Mon, Feb 27, 2012 at 3:28 PM, Rick Faircloth
wrote:
>
>>
>> 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:
>>
>> 
>>
>> and then output that with:
>>
>> #session.name#
>>
>> 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
>> wrote:
>>
>> >
>> > It's been awhile since I used session variables,
>> > but this is simple.  Why won't this work?
>> >
>> > session-test.cfm
>> > 
>> >
>> > 
>> >
>> > #session.name#
>> >
>> > 
>> >
>> >
>> > session-test-2.cfm
>> > --
>> >
>> > #session.name#
>> >
>> >
>> > 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:350119
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Session variables not working

2012-02-27 Thread Azadi Saryev

In your  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  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:
>
> 
>
> and then output that with:
>
> #session.name#
>
> 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
> wrote:
>
>>
>> It's been awhile since I used session variables,
>> but this is simple.  Why won't this work?
>>
>> session-test.cfm
>> 
>>
>> 
>>
>> #session.name#
>>
>> 
>>
>>
>> session-test-2.cfm
>> --
>>
>> #session.name#
>>
>>
>> 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:350120
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Session variables not working

2012-02-27 Thread James Holmes

Actually, a cfapplication tag will work fine outside of Application.cfm so
technically this isn't true. Of course it makes sense to use
Application.cfm or Application.cfc.

--
Shu Ha Ri: Agile and .NET blog
http://www.bifrost.com.au/


On 28 February 2012 04:36, Russ Michaels  wrote:

>
> yes you must have an application.cfm/cfc in order to enable session
> variables.
>
> On Mon, Feb 27, 2012 at 8:28 PM, Rick Faircloth  >wrote:
>
> >
> > 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:
> >
> > 
> >
> > and then output that with:
> >
> > #session.name#
> >
> > 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
> > wrote:
> >
> > >
> > > It's been awhile since I used session variables,
> > > but this is simple.  Why won't this work?
> > >
> > > session-test.cfm
> > > 
> > >
> > > 
> > >
> > > #session.name#
> > >
> > > 
> > >
> > >
> > > session-test-2.cfm
> > > --
> > >
> > > #session.name#
> > >
> > >
> > > 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:350121
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Session variables not working

2012-02-27 Thread Jay Pandya

Hi Rick,
When you are using session variables and you want to get its value in 
other page after using cflocation then you need to enable seclientcookies true 
in cfapplication tag. More description you can read on 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_5.html
read Setclientcokies description.

Thank You
Jay Pandya
>It's been awhile since I used session variables,
>but this is simple.  Why won't this work?
>
>session-test.cfm
>
>
>
>
>#session.name#
>
>
>
>
>session-test-2.cfm
>--
>
>#session.name#
>
>
>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:350123
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Session variables not working

2012-02-28 Thread Rick Faircloth

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  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 
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:
>
> 
>
> and then output that with:
>
> #session.name#
>
> 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
> wrote:
>
>>
>> It's been awhile since I used session variables,
>> but this is simple.  Why won't this work?
>>
>> session-test.cfm
>> 
>>
>> 
>>
>> #session.name#
>>
>> 
>>
>>
>> session-test-2.cfm
>> --
>>
>> #session.name#
>>
>>
>> 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


RE: Session variables not working

2012-02-28 Thread Rick Faircloth

I normally use an application.cfc, but this was just a quick
"proof-of-concept" that I threw together to test something.


-Original Message-
From: James Holmes [mailto:james.hol...@gmail.com] 
Sent: Monday, February 27, 2012 10:56 PM
To: cf-talk
Subject: Re: Session variables not working


Actually, a cfapplication tag will work fine outside of Application.cfm so
technically this isn't true. Of course it makes sense to use
Application.cfm or Application.cfc.

--
Shu Ha Ri: Agile and .NET blog
http://www.bifrost.com.au/


On 28 February 2012 04:36, Russ Michaels  wrote:

>
> yes you must have an application.cfm/cfc in order to enable session
> variables.
>
> On Mon, Feb 27, 2012 at 8:28 PM, Rick Faircloth  >wrote:
>
> >
> > 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:
> >
> > 
> >
> > and then output that with:
> >
> > #session.name#
> >
> > 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
> > wrote:
> >
> > >
> > > It's been awhile since I used session variables,
> > > but this is simple.  Why won't this work?
> > >
> > > session-test.cfm
> > > 
> > >
> > > 
> > >
> > > #session.name#
> > >
> > > 
> > >
> > >
> > > session-test-2.cfm
> > > --
> > >
> > > #session.name#
> > >
> > >
> > > 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:350126
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Session variables not working

2012-02-28 Thread Rick Faircloth

Thanks, Jay!

Rick

-Original Message-
From: Jay Pandya [mailto:jaypandy...@gmail.com] 
Sent: Tuesday, February 28, 2012 12:49 AM
To: cf-talk
Subject: Re: Session variables not working


Hi Rick,
When you are using session variables and you want to get its value
in other page after using cflocation then you need to enable seclientcookies
true in cfapplication tag. More description you can read on 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_5
.html
read Setclientcokies description.

Thank You
Jay Pandya
>It's been awhile since I used session variables,
>but this is simple.  Why won't this work?
>
>session-test.cfm
>
>
>
>
>#session.name#
>
>
>
>
>session-test-2.cfm
>--
>
>#session.name#
>
>
>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:350127
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Session variables not working despite being enabled?

2004-09-30 Thread Lawrence Ng
was it cflocated before the redirection?

>>> [EMAIL PROTECTED] 9/30/2004 12:47:32 PM >>>
Here's my cfapplication tag:


name="Secure3" clientmanagement="yes" setdomaincookies="yes" />

Sessions are turned on in the server.

I set session variables on one template but it doesn't show up on 
another which is included right afterwards.  Any idea?
-- 
*Damien McKenna* - Web Developer - [EMAIL PROTECTED] 

The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
"Nothing endures but change." - Heraclitus
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Session variables not working despite being enabled?

2004-09-30 Thread Damien McKenna
OK, a major case of hoof-and-mouth disease there.  I was using an 
incorrectly named variable, so of course it couldn't find it.

Bah.

Thanks Lawrence.
-- 
*Damien McKenna* - Web Developer - [EMAIL PROTECTED] 

The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
"Nothing endures but change." - Heraclitus
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]