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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.