LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-14-2004, 01:20 PM   #1
Squall
Member
 
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239

Rep: Reputation: 31
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?
 
Old 02-15-2004, 10:29 PM   #2
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 35
JavaScript is a CLIENT-side technology. There's no way to save any sort of state information on the server.
 
Old 02-15-2004, 10:48 PM   #3
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
You might be able to hack together something using cookies, though.

Alex
 
Old 02-16-2004, 12:29 PM   #4
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 35
Yes, and that would be better than tying it directly to IP address since for people on dialup, their IPs change quite often.
 
Old 02-16-2004, 06:32 PM   #5
Squall
Member
 
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239

Original Poster
Rep: Reputation: 31
Yeah thanks, though I don't think I'll use cookies. I don't believe in gathering anymore information about people than neccessary.
 
Old 02-16-2004, 07:14 PM   #6
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 35
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.
 
Old 02-16-2004, 08:54 PM   #7
nightwulf
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
He, ANOTHER javascript question Squall Programming 3 01-27-2004 06:10 PM
Javascript question unimaginative Programming 3 01-26-2004 02:32 PM
JavaScript Question jacksmash Programming 8 12-23-2003 05:01 PM
Javascript question? mikeshn Programming 2 08-22-2002 03:44 PM
JavaScript Question vance Programming 2 04-14-2002 12:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration