So i created a directory called 'secure' w/ a few pages, but how do sites usually make it so that users cant access a secure directory by typing in the directory in the address bar without logging in?
My thought was to include a piece of code like the following at the top of every page in that secure directory, so that none of the pages load since the session variable has not been switched to 'yes':
<cfif session.loggedin EQ "no">
<cfabort> (or use a cflocation to redirect to the login page outside the 'secure' directory)
</cfif>
Any thoughts? Im new to doing logins w/ CF...
