I'm hosting an intranet site that redirects the user to their directory on the server. I have this portion set up and functioning, but for some reason I can't seem to get any sort of logout script to work. I do know sessions are more secure and probably more appropriate for the purpose, but I'm trying to force myself to learn about cookies.
Upon validating a logon, I've placed this:
Code: Select all
$username = $_REQUEST['username'];
setcookie('user' , $username); Is it possible I'm missing something, or might I need to change some settings in php.ini? Any advice here would just be fantastic.
Oh, a little about the server, in case it helps
I'm running Ubuntu Desktop 9.10 with Apache2, PHP5, and MySQL - all are the most recent version (as of December 2009)