--- Eugene Lee <[EMAIL PROTECTED]> wrote: > > setcookie("logged", "yes"); > > > > On each protected page, put an IF ($logged == "yes") { //show page etc } > > else {//show login form etc } > > You should use $_COOKIE['logged'] instead. :-)
While we're talking about "should", you should also never trust what the client sends, including cookies. :-) Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php