I am having problems with the application-based security. I am fairly new to cold fusion. What I would like is if the user goes to the home page then a Login Page appears. Also, if the user tries to bypass the homepage i want to redirect it to the homepage. Currently, if a user goes to the homepage and login's in there are no problems, the problem arises when the user tries to bypass the homepage.
Here is my application.cfm page:
<cfapplication name="Index"
sessionmanagement="Yes">
<cfif not IsDefined("session.Auth.IsLoggedIn"
>
<cfinclude template="SecurityTest2.cfm">
<cfabort>
</cfif>
This snippet of code is on a page other than the homepage
<cfif not isDefined("SESSION.Auth.IsLoggedIn"
>
<cfinclude template="SecurityTest2.cfm">
<cfabort>
</cfif>
My directory structure has Home (which has the cfapplication page, and all the security test pages) then we have directories under the home directory.
The main problem is when the user tries to bypass the homepage if will redirect then to the login page but it looks at the directory down (not at the home directory).
I hope this makes sense.
Thanks in advance.
Here is my application.cfm page:
<cfapplication name="Index"
sessionmanagement="Yes">
<cfif not IsDefined("session.Auth.IsLoggedIn"
<cfinclude template="SecurityTest2.cfm">
<cfabort>
</cfif>
This snippet of code is on a page other than the homepage
<cfif not isDefined("SESSION.Auth.IsLoggedIn"
<cfinclude template="SecurityTest2.cfm">
<cfabort>
</cfif>
My directory structure has Home (which has the cfapplication page, and all the security test pages) then we have directories under the home directory.
The main problem is when the user tries to bypass the homepage if will redirect then to the login page but it looks at the directory down (not at the home directory).
I hope this makes sense.
Thanks in advance.