Jump to content

cookie Q


vijdev

Recommended Posts

i want to store the nickname of the user as a cookie..

somthing like set cookie name=nickname,value=smarty,expires after 1 week

i know cookies are stored against domain names.

what happens when another person logs in the same computer, with different login, and his nickname is diff

how does the cookie get handled, and how does the right nickname flash against the right persons login id...

Link to comment
Share on other sites

The cookie value would be over-written with the new users login details. For example one user logs in as "test1", the nickname cookies value is now "test1". If that user logs out, and a different user named "test2" logs in, then that cookie would be over-written with "test2".

 

Although, when a user logs out, the cookie information should be deleted any way and then set again if a login occurs.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.