Gavin:

If you are using cookies for session variables than you CANNOT use
CFLOCATION.  If your session variables are stored in memory, go for it.  The
reason why you cannot set a cooke in the same page is because cookie
information is stored in the http headers, and if the file you access says
"No, no don't look here, go to this page for the headers, you cookie cannot
be set."

However, I don't recommend using session variables at all.  If you know that
your site will ALWAYS be on one server and never need to be clustered with
multiple servers, you may use them.  But I ask you, how are you sure of
this?

Use client storage in a database.  This is the best method and for all of
you at the conference that were complaining that you cannot store complex
data types in a database, I say this: WDDX???? Hello, are you really a CF
programmer?

Greg
----- Original Message -----
From: Gavin Myers <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Friday, November 10, 2000 9:04 AM
Subject: Cflocation and Session.variable


> I think i remember hearing that you cannot use cflocation and set a cookie
> on the same page - if this is correct, can you set a session variable and
> use cflocation? This could explain a few problems I am having,
>
> If you cannot use cflocation and set a session variable, anyone know of a
> better workaround? Will using a meta refresh, or javascript work then?
>
> Thanks,
> Gavin
> --------------------------------------------------------------------------
----------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
>

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to