No, but that was not the error.

I fixed the inital error with the help of Dave Watts, by deleting each 
variable by name, like so:

<cfset var1 = StructDelete(session,"#session.RollCount#")>

However, this apparently leaves session.RollCount defined, as it fails the 
following:

<cfif not isDefined("session.rollCount")>

which defeats the app.

Any suggestions?

best,  paul


At 09:55 AM 2/6/01 -0500, you wrote:
>Was session.rollCount defined when you run the template and get an error?
>
>----
>Jason Aden
>Allaire Certified Developer
>[EMAIL PROTECTED]
>www.wwstudios.com
>
> > -----Original Message-----
> > From: paul smith [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 05, 2001 10:58 AM
> > To: CF-Talk
> > Subject: CFAS 4.5.1 Session Vars
> >
> >
> > CFAS 4.5.1 is apparently treating:
> >
> > <cfset result = StructClear(session)>
> > <cflocation url="index.cfm">
> >
> > differently than CFAS 4.0.1
> >
> > because the above followed by the following:
> >
> > <cfif not isDefined("session.rollCount")>
> >
> >       <cfset session.rollCount = 1>
> >
> >       <cfcookie name="isOn" value="testing">
> >       <cfset session.addToken = session.URLToken>
> >
> > <cfelse>
> >
> > <!--- Check to see if cookies are on. If no, make a query string variable
> > with the CFID and CFTOKEN. --->
> >
> >       <cfset session.addToken = iif(not
> > isDefined("cookie.isOn"),     DE("#session.URLToken#"), DE(""))>
> >
> > </cfif>
> >
> >
> > in application.cfm now throws an error (Session.URLToken is not
> > defined) in
> > 4.5.1 whereas it did not throw an error in 4.0.1
> >
> > Any suggestions?
> >
> > best,  paul
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to