I use this often

<!-- default redirect -->
<cfoutput>
<script language="_javascript_">
location.href = ""> </script>
</cfoutput>
<cfabort>
  ----- Original Message -----
  From: [EMAIL PROTECTED]
  To: CF-Talk
  Sent: Friday, January 09, 2004 6:06 PM
  Subject: RE: cflocation and urlSessionFormat()

  Peter,

  Thanks for your reply. I'll give your suggestion a try, but I also wanted to
  ask regarding the getPageContext().forward() function. I have heard/read
  very little on this and I am no java expert so tell me if I am way off
  base, but would the following work?

  getPageContext().forward(urlSessionFormat("view_application.cfm"));

  Thanks,

  Nate

  Quoting Peter Tilbrook <[EMAIL PROTECTED]>:

  > You answered your own question by saying "no" to the addtoken attribute.
  >
  > Make your life easier with:
  >
  > <cflocation url="" addtoken="yes" />
  >
  > Remember that because CFLOCATION changes the headers cookies are not set
  > on
  > the page containing a CFLOCATION. Annoying but true.
  > Peter Tilbrook
  > ColdFusion Applications Developer
  > ColdGen Internet Solutions
  > Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com
  > 4/73 Tharwa Road
  > Queanbeyan, NSW, 2620
  > AUSTRALIA
  >
  > Telephone: +61-2-6284-2727
  > Mobile: +61-0439-401-823
  > E-mail: [EMAIL PROTECTED]
  >
  > \¯\/¯/ |¯|)¯) /¯/\¯\ \¯\/¯/
  > /_/\_\ |_|)_) \_\/_/ /_/\_\ RULES
  >
  >   -----Original Message-----
  >   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  >   Sent: Saturday, 10 January 2004 8:59 AM
  >   To: CF-Talk
  >   Subject: cflocation and urlSessionFormat()
  >
  >
  >   Has anyone ever run into problems when using the urlSessionFormat()
  > function
  >   inside the url attribute of the cflocation tag? When I use the
  > following
  >   code with cookies disabled on the browser I get two (J2EE sessions are
  >   enabled in cf administrator) jsessionid's in the URL and the whole
  >   application gets screwed up...
  >
  >   <cflocation url="" />
  >
  >   Even when I set the addtoken attribute to "no" with cookies disabled
  > the
  >   application does not function properly.
  >
  >   Any insight would be appreciated.
  >
  >   Nate
  >
  >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to