LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   I need a better title for this javascript question. (https://www.linuxquestions.org/questions/programming-9/i-need-a-better-title-for-this-javascript-question-146058/)

Squall 02-14-2004 01:20 PM

I need a better title for this javascript question.
 
Seriously, my questions have the worst titles ever, I need something more creative.
Anyway, here is my NEXT question:
Is there anyway to assign a bolean variable to a specific I.P. so that a message is only displayed ONCE for each visitor?

Kurt M. Weber 02-15-2004 10:29 PM

JavaScript is a CLIENT-side technology. There's no way to save any sort of state information on the server.

llama_meme 02-15-2004 10:48 PM

You might be able to hack together something using cookies, though.

Alex

Kurt M. Weber 02-16-2004 12:29 PM

Yes, and that would be better than tying it directly to IP address since for people on dialup, their IPs change quite often.

Squall 02-16-2004 06:32 PM

Yeah thanks, though I don't think I'll use cookies. I don't believe in gathering anymore information about people than neccessary.

Kurt M. Weber 02-16-2004 07:14 PM

With cookies, the only information you can gather is information the user provides you. And it is entirely possible to set a cookie that simply exists, and contains no data at all.

nightwulf 02-16-2004 08:54 PM

Quote:

Originally posted by Squall
Yeah thanks, though I don't think I'll use cookies. I don't believe in gathering anymore information about people than neccessary.
Cookies are only a means by which web scripts can store small bits of data on the user's computer rather than the server. How they're used is entirely up to the programmer.

Regards,
nightwulf


All times are GMT -5. The time now is 03:43 AM.