In out application.cfm file..
<cfparam name="session.user.authorized" default="0" />
<cfif session.user.authorized IS 0>
<cflocation url="" addtoken="No" />
</cfif>
we have a sub directory "login"
which itself has the exact same application.cfm file minus the session variable check(to prevent an infinite loop).
The user logs in and the session variable is set to 1 or something other than 0.
I have found this is be very easy and nice.. plus it locks the whole directory under that one application.cfm file.
Something you might want to check is the timeout for your session variable. In the administrator and in your application.
HTH!
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 1:34 PM
To: CF-Newbie
Subject: CFLogin Issues :: Proxy related?
I'm using the CFLogin framework for a small quiz application we're hosting
for a client. I'm also using CFApplication to hold a few session variables
that I don't want to keep retreiving from the database. (Company name,
score, a list of responses, etc.)
The problem we're having is that users at certain sites successfully log
in, and when they go to answer a question, they are occasionally kicked
out. Sometimes they get through a few questions, sometimes they just get
thrown back to the login screen as if they haven't logged in at all and are
trying to access a protected page.
We've also had reports of users logging in after they take the quiz, and
getting someone else's name / results. Since we're storing all the user
data (name, password, username, score, etc.) all in 1 record and not doing
joins, I can pretty much rule out any kind of bug in pulling the wrong data
out of the db.
At at least one other site, and in our office, we've had no problems at
all. I spoke with our hosting company, and everything seems to be on the up
and up as far as session expiration. I'm thinking it could be a proxy
related issue, I can't find any other rational explanation.
Anyone have any ideas? Greatly appreciated.
-Paul Colombo
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
