Code: Select all
<?php if (!isset($_COOKIE['logincookie'])) {
// Output header, send to login if no cookie exists
header ( "Location: back_to_login.php" );
exit;
}I have developed a Flash menu system that would be able to determine the login cookie status and then conditionally spit out XML based on the acat_public conditonal. If logged in..the XML output would list both public and non-public pages. If not looged in (No cookie) then public only pages get listed in the menu. Have a pretty good idea on how to implement this.
The real question is about accessing non-public pages via 'non-menu' methods, ie bookmarks/manually typing in address (uses alaises) in the address. Still need a method to boot non-logged in users from viewing these pages.
So basically my question is where can I successfully the above mentioned cookie sniffer script within the standardized phpwcms implementation. As I understand it works on session cookies, whereas my simplified hack (future tense) might rely on standard cookies. Wanted to ask others their thoughts about how phpwcms might be modified to check for cookie status before running the standard script for page generation.
Thoughts/ideas/suggestions would be appreciated.
Cheers, jsw(john)