Should work but the main problem you will have is that this will be included
in the ssfrmtry.cfm page as well so you will get stuck in an infinite loop.

-----Original Message-----
From: Colm Brazel [mailto:[EMAIL PROTECTED] 
Sent: 30 July 2004 12:39
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Deleted files



Probably doing something very stupid but I have a piece of standard code in
Application.cfm which checks for a loggedin flag. It should load before any
page in the application and bring the user not logged in to login form again
or to another file telling them to retry, but unless I put the code
<cflock scope="session" timeout="10" type="exclusive">
<cfif not isDefined("session.Loggedin")>
<cflocation url="ssfrmtry.cfm"></cfif></cflock>

into individual pages under the application root, I can browse locally to
the file without being logged in. Anybody know why it does not work in
Application.cfm whereas it works when each page is manually coded with the
above.
Application.cfm has for example

<cfapplication name="GetThisApp"
sessionmanagement="Yes"
sessiontimeout=#CreateTimeSpan(0,0,45,0)#>


<cflock scope="session" timeout="10" type="exclusive">
<cfif not isDefined("session.Loggedin")>
<cflocation url="ssfrmtry.cfm"></cfif></cflock>


Colm

---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0431-2, 29/07/2004
Tested on: 30/07/2004 13:38:20
avast! is copyright (c) 2000-2003 ALWIL Software.
http://www.avast.com




-- 
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]


-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to