When the user logs in, it sets a client variable.  When the user logs out,
the client variables are reset to null.

On each page, I am checking for that variable: <cfif
IsDefined("client.securitylevel")>.  Following that, I am checking for a
valid security level: <cfif #client.securitylevel# NEQ "">  



  _____  

Gary L. Alford
Manufacturing Operations Project Specialist
Bell Helicopter XWorx
Phone: (817) 280-6233     Fax: (817) 278-6233
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

I have not failed.  I've found 10,000 ways that won't work.
          Thomas A. Edison 
  _____  



-----Original Message-----
From: Matt Woodward [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 8:07 AM
To: [email protected]
Subject: Re: Application.cfm...


Absolutely--how are you doing your login check now?  Do you have a
session variable get set once they login, are you using cflogin, etc.?

Without seeing what you're doing I can't say for sure, but if you're
doing a login check on each page you can take that exact same code and
put it in your Application.cfm file.  If you have areas of the site
that don't require a login and others that do, you can also include
one Application.cfm file inside another, so you could have your "no
login" Application.cfm file at one directory level above your "login"
Application.cfm and include the former in the latter.

Let me know if that doesn't make sense.

Matt


On Tue, 11 Jan 2005 08:02:50 -0600, Alford, Gary L
<[EMAIL PROTECTED]> wrote:
>  
> Is there a way to set up my Application.cfm file that will check to see if
a
> user is logged in and, if not, redirect the URL to the main log in page
for
> users who try to "back door" into the system?  Currently, I am performing
a
> check on the definition of a valid security level on each and every page. 
> But I thought there might be an easier way. 
>   
> Any suggestions would be greatly appreciated.
>  ________________________________
>  
> Gary L. Alford
> Manufacturing Operations Project Specialist
> Bell Helicopter XWorx
> Phone: (817) 280-6233     Fax: (817) 278-6233
> [EMAIL PROTECTED]
> 
> I have not failed.  I've found 10,000 ways that won't work.
>           Thomas A. Edison ________________________________
>  
> 
>   
> 


-- 
Matt Woodward
[EMAIL PROTECTED]
http://www.mattwoodward.com
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm

----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to