PDA

View Full Version : can i retrieve user name using cookies?


munaa80
07-15-2002, 09:15 PM
i want to store username in a cookie and then another user uses the same pc and i want to store his name too.

i then want to retrieve the first user name from the cookie, or check for the existane of that name in the cookie, and even the second user.

my question is, can i do this idea? and can i store many names in the cookie and then search for them?

please reply to me and give me useful sites to learn from if possible, thanx.

scroots
07-15-2002, 09:43 PM
the computer or server would not know which user is using the computer.

scroots

nolachrymose
07-15-2002, 09:47 PM
I suppose you could store an array as a variable value (use the .join() method), then split it by its delimiter.

Hope that helps!

Happy coding! :)

joh6nn
07-15-2002, 10:07 PM
i think i'm with scroots on this one. if you want multiple people on the same computer, to have their names on your site, i'm thinking you'd have to use serverside, and a database. it would probably be too complicated and confusing with cookies. i don't. maybe it could be done, but i'm not coming up with anything easy off the top of my head. maybe someone cleverer than me (and there are bunches of 'em) will think of something.