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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to