Matt, thanks. That was it. -----Original Message----- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 2:52 PM To: CF-Talk Subject: RE: CFMX Killing Session Var's with every page load
Its setclientcookies=no. You have to have that on. It works on your local server because you already have a cookie set there with your key pair in it, I bet. -------------------------------------------- Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc. http://mysecretbase.com -------------------------------------------- -----Original Message----- From: John Stanley [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 11:44 AM To: CF-Talk Subject: CFMX Killing Session Var's with every page load My app tag in the application.cfm is thus: <cfapplication name="AeroNet" sessionmanagement="Yes" setclientcookies="No" sessiontimeout="#CreateTimeSpan(0,0,20,0)#" applicationtimeout="#CreateTimeSpan(0,0,15,0)#"> Also in the application.cfm is this: <cfif not isdefined("session.Auth")> <cfset session.Auth = structNew()> <cfset session.Auth.isLoggedIn="No"> <cfset session.Auth.LoginId = ""> <cfset session.Auth.UserID = ""> <cfset session.Auth.LoginAttempts = "0"> <cfset session.Auth.AppList = ""> </cfif> Now, on my content page it says: <cfif session.Auth.isLoggedIn neq "Yes"> <script> document.location = "login.cfm"; </script> <cfelse> execute normally </cfif> On my local CFMX machine when I use this code, it works flawlessly. If the user is not logged in, it redirects them to the login page. On my production CFMX machine, the user logs in, the session var is set to yes, but then when the next page loads the session is killed and so the user is redirected to the login page. Also, this does not happen all the time (but still happens about 90% of the time). It seems to be fixed after I open CF administrator, but then breaks again. The settings in relation to session vars between the two servers are the same (Yes, 20 minutes, 20 minutes) Anyone have a clue? John ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

