Mullai,

If you set setclientcookies to no, you have to include the CFID and CFTOKEN 
on the url for every page request.  CF uses those CFID and CFTOKEN cookies 
to connect the session on the server with the end user of the application.

If you are using this application internally, you should be fine setting 
setclientcookies to "yes."  If you can't use cookies, then you'll need to 
append the CFID and CFTOKEN values to each link in your application. 
Obviously the former is much simpler than the latter.

-- Josh




----- Original Message ----- 
From: "Mullai Subbiah" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Friday, November 17, 2006 2:57 PM
Subject: Mysterious Session Timeout


>I am using CFMX7. I am getting Session Timeouts when running the 
>application.
>
> I have set the application and session timeout defaults to be 10 hour and 
> maximum - 2 days (CF Admin). Within my application.cfm I have set them to 
> be 9 hours (<cfapplication>). I have enabled SessionManagement and 
> disabled clientcookies. I still dont understand why I am getting session 
> timeouts. Sometimes it happens quite quite often. Sometimes it times out 
> after a long period of time but still well before the 9 hour limit. When I 
> tested it with like 5 minutes it times out 5 minutes later.
>
> I hope somebody had experienced some thing like this and could some shed 
> light on this issue.
>
> This is my application.cfm code.
>
> <CFAPPLICATION NAME="MyApplication" SESSIONMANAGEMENT="Yes" 
> SESSIONTIMEOUT="#CreateTimeSpan(0,9,0,0)#" 
> APPLICATIONTIMEOUT="#CreateTimeSpan(0,9,0,0)#" SETCLIENTCOOKIES="NO" 
> loginStorage="session">
> <CFPARAM NAME="session.LoggedIn" DEFAULT="FALSE">
>
> <!--- user login --->
> <CFLOCK SCOPE="SESSION" TYPE="READONLY" TIMEOUT="25">
>     <CFIF (#SESSION.LOGGEDIN# IS "FALSE")>
> <!--- ... login pages --->
> <CFIF (CGI.SCRIPT_NAME IS NOT "#base_path#/admin/index.cfm") AND 
> (CGI.SCRIPT_NAME IS NOT "#base_path#/admin/main/index.cfm") AND 
> (CGI.SCRIPT_NAME IS NOT "#base_path#/admin/main/results.cfm") AND 
> (CGI.SCRIPT_NAME IS NOT "#base_path#/admin/main/forgotpass.cfm") AND 
> (CGI.SCRIPT_NAME IS NOT "#base_path#/admin/main/logout.cfm")>
> <cfoutput>
> <SCRIPT LANGUAGE="JavaScript">
> self.location.href='#base_path#/admin/main/index.cfm';
> </SCRIPT>
> </cfoutput>
> </CFIF>
> </CFIF>
> </CFLOCK>
>
> Thanks.
>
> Mullai
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260975
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to