Hi Michelle,
The reason your second page is able to be viewed, is
that you have not setup any type of evaluation process
to ensure the viewer is allowed to view it. This can be
accomplished in the following manner.
On your login page change your <cflocation> tag to this:
<cflocation url="admin/menu.cfm?login_status=Successful" addtoken="no">
Then on the page to be protected do this:
<cfif isdefined('url.login_status') and trim(url.login_status) eq "Successful">
-->> Insert desired page content here
<cfelse>
-->> Insert message that login is required - or - immediately redirect
them to the login page with a <cflocation> tag here.
</cfif>
Note: Keep in mind that once the page has been displayed, should the initial
viewer leave the computer and not close out the browser, the information on
the page will still be available for viewing by anyone else.
BTW -- The method you are trying to setup could be handled in a single .cfm
page. I would be glad to provide the code for that, should you want to only
use a single page as opposed to two.
Leonard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5149
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm