Oh, you might also try the javascript redirect, but manually add the cfid
and cftoken to the end of the URL.

Bob

-----Original Message-----
From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 10:35 PM
To: CF-Talk
Subject: RE: Do a CFLOCATION and all my session vars disappear?


Are you setting client cookies in your cfapplication tag?  If not, the
javascript redirect won't hold onto your session.  I'm surprised that
cflocation with addtoken=yes didn't work.  I'm sure this all sounds obvious,
but here's what I'd do:

1. Set client cookies in cfapplication (if you aren't already).
2. Setup your browser so it prompts you before it accepts a cookie (that way
you can see whether the cookies are actually being set).
3. Test again with cflocation, both with addtoken=no and addtoken=yes.

Probably nothing you haven't already done, but I thought you'd appreciate
knowing that someone else is working away too.

Best of luck,
Bob

-----Original Message-----
From: Kevin Gilchrist [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 10:27 AM
To: CF-Talk
Subject: Fw: Do a CFLOCATION and all my session vars disappear?


Hi all,

Hope some people are still up and at it!

I have a code section where I do a CFLOCATION to a page in caller's parent
directory and it starts a brand new session.  I traced through the process
with the Studio debugger and as soon as I get to the Application.cfm it's as
if I started a new session.
The code is
<cflocation url="../survey_form.cfm" addtoken="No">

I tried appending the token and it didn't make a difference.
What's strange is that I can cflocate to a test.cfm page without problem.

So then I tried switching from CFLOCATION to
<script language="JavaScript" type="text/javascript">
   self.location="../survey_form.cfm"
  </script>

Which didn't work either.

There's only one Application.cfm file so that can't be it either.  Really
stumped on this one.

Thanks,
Kevin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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