just need sum code to write username to a cookie and read it.
Tried scripts already available but they fail to read any value.
Any help?
writing and reading a cookie
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You can write a cookie using setcookie() and then once you've refreshed the page, you should be able to access it (assuming you've called it username) as $_COOKIE['username'].
Mac
Mac