Do cookies work on personal servers? I'm trying it out and it doesn´t seem to work. Is there any special configuration that should be worked on for them to work?
Thanks,
Leo.
Cookies and localhost
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
homerwells
- Forum Newbie
- Posts: 4
- Joined: Fri Mar 21, 2003 9:26 am
-
sleepingdanny
- Forum Newbie
- Posts: 12
- Joined: Thu Mar 20, 2003 4:27 am
- Location: Israel
Try to upload the 2 files that you told us to your site... OR maybe the code can't work because it should look like this
Code: Select all
<?
setcookie("login")
?>Code: Select all
<?
if(isset($_COOKIE["login"])){
print "Logged In";
}
else{
print "Not Logged In";
}
?>