28 users online (1 members and 27 guests)  

Thread: JS cookies


  Results 1 to 2 of 2

Related

  1. cookies in PHP    Forum: PHP Forum
    Replies: 1
  2. set cookies    Forum: CGI Perl Forum
    Replies: 1
  3. Cookies Session Help    Forum: Website Scripts Forum
    Replies: 8
  4. cookies    Forum: General Discussion
    Replies: 3
  1. #1
    Bimmer325i's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2002
    Posts
    13

    JS cookies

    Just curious, I been looking at this Javascript site and it gives cookies. First off, does anyone know of a site that will teach me to write JS and cookies?
    Second, maybe I have this wrong but when you write a cookie that shows previous visits and last visit and etc.. how would I check that exactly?
    The one I found has a popup for the visitor, which is ok I guess, but I would rather it not show up for the visiter and just me.
    And maybe I am totally messed up on the cookie idea. So any help would be great.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi B.

    Cookies are just stored information, you define a name for your information (like 'lastVisit' ) and give it a value (' todays date'). What you do with the cookie is up to the code you use. You can make it print the visitors name (if they entered it before) or log them in to a secure area (not recommended) etc etc.

    Heres a tutorial to JS cookies tutorials -

    http://www.webreference.com/js/column8/
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread