You are refreshing the page by submitting the form, which means
you can loose your session. 
Work around.
You have to manually set the cookie CFID AND CFTOKEN or
change your settings in Admin to point your CFID And CFTOKEN
to a database, rather than the registry. Which also is needed
for clustering.

<cfcookie Name="CFID" value="#CFID#">
<cftoken Name="CFToken" value="#CFToken#">

or 

use a Session variable
<cfparam Name="Session.Sid" default="#Session.CFID##Session.CFTOKEN#">


Test: If you just have one page to see what your CFID and CFTOKENS
are and hit the refresh button of IE or the Reload button of
Netscape, you will see the CFID and CFTOKENS change.


----------------------------------------------------------

> I have two questions about sessions.
>
> 1)  I have an application that opens a pop-up javascript window
> with a form.
> This  on the javascript window submits itself back to the template
that
> opened it.  It seemed to be working fine, but suddenly I am
loosing my
> session when the form is submitted.  (Its changing to a new
CFID and
> CFTOKEN).  The question is what could be causing me to loose
the
> session in
> this way and how do I fix this?  Do I have to start passing
> URLTOKEN around?






--- Original Message ---
"Steve Martin" <[EMAIL PROTECTED]> Wrote on

Tue, 1 Aug 2000 09:54:08 +0100
 ------------------ 
> I have two questions about sessions.
>
> 1)  I have an application that opens a pop-up javascript window
> with a form.
> This  on the javascript window submits itself back to the template
that
> opened it.  It seemed to be working fine, but suddenly I am
loosing my
> session when the form is submitted.  (Its changing to a new
CFID and
> CFTOKEN).  The question is what could be causing me to loose
the
> session in
> this way and how do I fix this?  Do I have to start passing
> URLTOKEN around?

Have you also suddenly turned off cookies? If you haven't been
passing
URLToken around previously then you must have been relying on
cookies to
perpetuate the session. Or, has the domain portion of the popup
box changed
i.e. is your main site www.a.com and the popup box in www.b.com
- this would
cause cookie loss and hence session loss.


> 2) What methods can I use to prolong the length of a session?
 I can't
> change the timeout value because I am using an ISP.

Eron, just because you're using an ISP it doesn't mean that you
can't change
the timeout values. Sure, you can't change the default timout
values as set
in the administrator but you can override these with your own
settings in
your <CFAPPLICATION> tag (e.g. sessiontimeout="#CreateTimeSpan(0,0,30,0)#").

> Thanks,
> Eron

NP
Steve

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



-----
Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web browser, anywhere!

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

Reply via email to