Is the session variable defined in your application.cfm?  If so check that
you have session-level cookies enabled in your browser.  If not then this is
the problem.  When you click through to the next page it thinks you are a
new user as it has no way of knowing you have been there before.  If this is
the case try putting this code in your application.cfm:

<cfif NOT ISDEFINED("Client.rollCount")>
        <cfset Client.rollCount = 1>
        <!--- Try to set a cookie for testing later --->
        <cfcookie name="isOn" value="testing">
        <cfset application.addtoken =
"cfid=#Client.cfid#&cftoken=#client.cftoken#">
<cfelse>
        <!--- If cookies are not on then make a query string --->
        <cfset application.addtoken = iif(not isdefined("cookie.isOn"),
DE("cfid=#client.cfid#&cftoken=#client.cftoken#"), DE(""))>
</cfif>

and then appen &#application.cfm# to the end of every hyperlink, form
posting, and cflocation in your site.  This will ensure state is maintained
if the user has all cookies turned off.  Ok I use Client variables here but
you get the idea.

------------------------------------------------------------------
Andrew Ewings
Project Manager
Thoughtbubble Ltd
------------------------------------------------------------------


-----Original Message-----
From: Eli Shechter [mailto:[EMAIL PROTECTED]]
Sent: 11 October 2000 17:13
To: CF-Talk
Subject: sessions emptying themselves


Hi

are there any reasons why a session variable would empty out by itself??
i have a session variable that after clicking to another page, just empties
itself
it will still exist, but it will be empty.

any suggestions?

Thanx
-Eli-

----------------------------------------------------------------------------
--
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.
------------------------------------------------------------------------------
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