hi i use cookies in my site
setcookie("user","id-pass",time()+(60*60*24));
it work well
but when i try to logout
make
setcookie('user', '', time() -(60*60*24));
its not work
iam tried
setcookie('user', ' ', time() -(60*60*24));
not work
tried
unset($_COOKIES)
not work
tried replace it not work too
iam tried every thing
click here -2
Newbie Poster
Recommended Answers
Jump to PostTry this:
setcookie('user','',(time()-(60*60*24)));
Also make sure that code is before any html output.
Jump to PostThe only other thing I can suggest is the following code:
setcookie('user','',0);
All 7 Replies
cwarn23 387
Occupation: Genius Team Colleague Featured Poster
click here -2
Newbie Poster
cwarn23 387
Occupation: Genius Team Colleague Featured Poster
click here -2
Newbie Poster
Graphix 68
---
Graphix 68
---
click here -2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.