Forum Moderators: coopster
setcookie('lgusr', $id, 0);
Now when you click logout it won't destroy the cookie unless you close the browser. I have tried session_destory and also:
setcookie('lgusr', '', -1);
As was suggested in the php manual but the cookie remains! Any ideas?
setcookie('lgusr', 0, time()-100);
I don't think -1 will work correctly. You should be able to unset() it, too.