PDA

View Full Version : cookies in javascript


munaa80
07-15-2002, 03:03 PM
for the first user visit to my site,i want to let the user to enter his email then i will store it in cookie.

for later visits, i want the user to reenter his email, then i will search in the cookie file for his email, and display a message that tell him that he allready visit the site.

i want to do that for any user enters the site and use the same pc.

can i do my idea using js cookies?
please le me know.

MikoLone
07-15-2002, 03:45 PM
JS cookies are stored on there computer. so you do not need to store their e-mail on there computer. what you can do is just leave a flag in a cookie and then check it whenever you load a page. search cookie on this site or the old forum and you will find plenty of cookie scripts that you can use to do this. good luck:thumbsup:

Cloudski
07-15-2002, 03:49 PM
I am posting this now just to let you know, because this thread is going to be deleted by the moderator. This forum right here is for posting complete Javascripts only. If oyu need help debuging, creating scripts, post it in the appropriate forum. (I think it is called Javascript Programming)

boxer_1
07-15-2002, 03:59 PM
Cloudski is right, this thread belongs in the Javascript programming forum, where it will likely be moved to. For future reference, please take a few moments to consider where your topic / question belongs before posting ;).

jkd
07-15-2002, 05:41 PM
:: cracks Supermod knuckles :D ::