|
I've installed PPS on my website and can login OK.
The instructions that come with the script don't say what to put at the top of each page you want protecting.
The script uses sessions.
Does anyone know about this script?
It's written by Paul Johnston
Thanks
Andrew Edmondson (php ignorant)
PS Here's what I put at the top of a page to protect it:
<?php
session_start();
if(session_is_unregistered('username')){ //Program skips past this even when I'm logged in ...
}
else{
header("Location: http:// etc); //... and goes here
}
?>
HTML for page follows
|