At 12:48 PM 7/30/02 -0400, Paul wrote:
>Thanks for the reply Isaac,
>
>     I tried placing the following code in the application.cfm page but 
> the user is not logged in until they enter the members area of the site. 
> Will this code work outside of the application page? Currently the 
> loginid is not declared in the application page.
>
><cflock scope="session" type="readonly" timeout="10">
><cfset loggedin = YesNoFormat(IsDefined("session.loginid"))>
></cflock>
>
><cfif not loggedin>
><cfinclude template="loginform.cfm"><cfabort>
></cfif>

I'm not sure what you're doing here, but you could do:

<cflock scope="session" type="readonly" timeout="10">
         <cfif not IsDefined("Session.LoginID")>
                 <cfinclude template="loginform.cfm">
                 [Put your various closing stuff here </body> </html> etc, 
if not in your loginform.cfm file.]
                 <cfabort>
         </cfif>
</cflock>

If you put this code (and the login code) in your application.cfm file, it 
will run on every page, protecting each.


T


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to