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 <r...@michaels.me.uk> 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 <r...@whitestonemedia.com > >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: > > > > <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:350126 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm