what's happening is that when you redirect to ssfrmtry.cfm, that also calls
the application.cfm. which then tries redirecting them again, and you're
in an infinite loop. you need to set some other flag or something to make
sure you don't call this code more than once:
<cfif not isDefined("session.Loggedin")>
<cflocation url="ssfrmtry.cfm"></cfif>
"Colm Brazel"
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
world.ie> cc:
Subject: RE: [ cf-dev ] Deleted files
30/07/2004
13:38
Please
respond to
dev
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]