Cookies
I want to store different usernames in cookies. How will I be able to achieve this? What my code actually does is that whenever it recognizes that cookies do not exist, it will create a cookie for the user. However, once a different user logs in (using the same pc), it does not create a new cookie about the second user anymore. It just retains the cookie of the first user. Help!
merlin posted this at 06:00 — 6th April 2001.
They have: 410 posts
Joined: Oct 1999
and how would it recognize, which user it is? you would have to log in everytime?
you could write a cookie and as cookiename you take the username. everytime someone logs in, it looks for a cookie with the same name.
but i'm not yet experienced with cookies...
Mark Hensler posted this at 18:45 — 6th April 2001.
He has: 4,048 posts
Joined: Aug 2000
good idea, merlin
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.