<cfif not session.allowin>
If you're going to use Boolean values, you might as well go all the way.
Line 11 will never evaluate true, since you're using listlast with / as
a delimiter, and testing against a string with the same delimiter.
<cfif ListLast(CGI.SCRIPT_NAME, "/") EQ "../admin_login.cfm">
You probably want ListLast(CGI.SCRIPT_NAME, "/") IS "admin_login.cfm".
Or, combine them.
11. <cfset Request.Page = ListLast(CGI.SCRIPT_NAME, "/") />
12. <cfif
ListFindNoCase("admin_login.cfm,admin_login_process.cfm", Request.Page)>
I'm guessing the failure in your redirect is because session.allowIn =
"True" is not matching with the "true" in your condition... did you try
what Kevin suggested and try 1 and 0 instead? Or at the very least make
sure the case matches...
Joe
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 12:59 AM
To: CF-Talk
Subject: Login a User Problem - code not in email body....couldn't post
message with it...
This *has* to be something with the Cold Fusion Admin on this particular
server, but I'm at a loss.
I'm using the same code (grabbed from somewhere...) on a number of sites
(not on the server in question) and it's working fine. However, on this
ONE Server - running CFMX...
I'm using a typical login page at the site root level. What's happening
is that the recordset finds the user - the code runs on the processing
page, and I get the alert saying that the user is logged in.
Then, as soon as the code hits the "self.location="idx_admin.cfm";"
block on line 8 of the processing page and it tries to redirect, I'm
kicked right back out to the login page with the "not authorized"
message in the Application.cfm file.
So, it seems to be loggin someone in, and then logging them right back
out again. Ideas?
Code is here in a text file.
http://www.columbiacityjazz.com/loginproblem.txt
I've tried posting this message several times with the code in the body
and it refuses to post...
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

