Actually, the SetClientCookies attribute defaults to Yes, so you don'
t need
it in there unless you aren't using client cookies.  The only attribu
tes
needed for session management are 'name' and 'sessionmanagement'.  Op
tional
attributes like applicationtimeout and sessiontimeout can be used as 
well,
but these values will default to whatever they are set to in the CF
administrator.

Andy

> -----Original Message-----
> From: Shawn Regan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 5:26 PM
> To: CF-Talk
> Subject: RE: CF sessions still having a problem.
>
>
> Ok I got it to work i stripped it down to this:
>
> <cfapplication name="Course"
> sessionmanagement="Yes"setclientcookies="Yes">
>
> I wonder if the app name="" can only be so long? I also dropped o
ut
> the
> clientstorage and clientmanagement
>
> now it works
>
> Shawn Regan
> Applications Developer
> pacifictechnologysolutions
>
>
> -----Original Message-----
> From: Shawn Regan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 2:18 PM
> To: CF-Talk
> Subject: RE: CF sessions still having a problem.
>
>
> I tried that too. Still the samething.
>
> Shawn Regan
> Applications Developer
> pacifictechnologysolutions
>
>
> -----Original Message-----
> From: Sam Farmer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 12:43 PM
> To: CF-Talk
> Subject: Re: CF sessions still having a problem.
>
>
> Try:
> <cfapplication name="CourseRegistration" clientmanagement="Yes"
> sessionmanagement="Yes" setclientcookies="Yes"
> clientstorage="CourseReg">
>
> I've come accross this problem before and setclientcookies="Yes"
> needs to be
> on for sessions to work.  Not sure if this is a bug/ feature.
>
> Sam
>
>
> ----- Original Message -----
> From: "Shawn Regan" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 22, 2002 10:37 AM
> Subject: CF sessions still having a problem.
>
>
> > Ok people,
> >
> > I have in my application.cfm file my cfapplication tag like so:
> >
> > <cfapplication name="CourseRegistration" sessionmanagement="Y
es"
> > clientmanagement="Yes" clientstorage="CourseReg">
> >
> > I set a default for my session loggedON like so:
> >
> > <cfparam name="session.loggedON" default="false">
> >
> > Then also in my application.cfm file I watch for seesion.loggedON
> like so:
> >
> > <CFIF session.loggedON EQ false>
> >
> > <!--- Don't send them to the logon screen if the query
> > string contains logon. This means there are at the logon screen.
> > If we didn't watch for this it would send the browser into a
> > loop --->
> > <CFIF NOT (application.qryString CONTAINS "logon")>
> > <cflocation addtoken="Yes"
> > url="index.cfm?Fuseaction=logon.logon">
> > </CFIF>
> >
> > </CFIF>
> >
> > Ok this works fine.
> >
> > But after the user logs on I cannot write to my session.loggedON 
i
> get
> this
> > error:
> >
> >
> > An error occurred while evaluating the expression:
> >
> >
> >  session.d_code = logonUser.DLRCODE
> >
> >
> >
> > Error near line 62, column 9.
> >
> -------------------------------------------------------------------
-----
>
> --
> --
> > ----
> >
> > Attempt to access a Session variable when session management is n
ot
> enabled.
> > Use the CFAPPLICATION tag to enable session management.
> >
> > Note: This feature may have been disabled by the site administrat
or.
> >
> >
> >
> >
> >
> > The error occurred while processing an element with a general
> identifier
> of
> > (CFTHROW), occupying document position (266:11) to (266:73).
> >
> >
> >
> >
> > Now as you can see I have sessionmanagement set to yes above in m
y
> > cfapplication tag. I have checked in the admin too and session an
d
> client
> > vars are enabled.
> >
> > I have never had this problem before. Anyone have any ideas pleas
e
> help :)
> >
> > Shawn Regan
> > Applications Developer
> > pacifictechnologysolutions
> >
> >
> >
> >
>
>
> ___________________________________________________________________
___
> Dedicated Windows 2000 Server
>   PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
>   Instant Activation · $99/Month · Free Setup
>   http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to