Results 1 to 7 of 7

Thread: Cookies in JS

  1. #1

    Thread Starter
    Hyperactive Member GamerMax5's Avatar
    Join Date
    Nov 2004
    Location
    United States
    Posts
    388

    Question Cookies in JS

    I know how to write a cookie in JS but how do you get it to save to the computer?
    Only those who try will become.

    Find me on identi.ca

    Twitter @gfmartin05

    Linux Wrap

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Re: Cookies in JS

    Cookies are automatically saved in the cookies directory.
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Hyperactive Member GamerMax5's Avatar
    Join Date
    Nov 2004
    Location
    United States
    Posts
    388

    Question Re: Cookies in JS

    I know that but I wrote the cookie and the cookie is supposed to save when the user clicks on the save data button. Well I clicked on it and I checked the directory and it wasn't there but then I wrote a JS program that checks for any available cookies on your computer and it was there. Then I ran a find and it couldn't find it! ***???!!!


    EDIT: Are there such things as static cookies
    Only those who try will become.

    Find me on identi.ca

    Twitter @gfmartin05

    Linux Wrap

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Re: Cookies in JS

    hat would a static cookie be? There is only cookies and not cookies, no grey area. When you save it, it doesn't havea file name of the cookie name. IE cookies are at:
    C:\Documents and Settings\Owner\Cookies
    FF stores them in:
    C:\Documents and Settings\Owner\Application Data\Mozilla\Firefox\Profiles\bskpkvop.default\cookies.txt
    (change those to suit your username)
    Have I helped you? Please Rate my posts.

  5. #5

    Thread Starter
    Hyperactive Member GamerMax5's Avatar
    Join Date
    Nov 2004
    Location
    United States
    Posts
    388

    Re: Cookies in JS

    By static, I meant that they act like RAM; it gets deleted when you turn the computer off. But after asking my teacher, they don't exist.

    I run IE. I checked the folder but it wasn't there. I might have done the coding wrong. Could someone post the code for cookies so I can check?
    Only those who try will become.

    Find me on identi.ca

    Twitter @gfmartin05

    Linux Wrap

  6. #6
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Re: Cookies in JS

    There is such a thing as a session cookie. Which gets deleted when the browser closes, in fact they are the default type of cookie. If you don't specify an expiration date, then that's what gets set, to find script on using cookies have a look at:
    http://js-x.com/search/?op=2&q=28
    Have I helped you? Please Rate my posts.

  7. #7

    Thread Starter
    Hyperactive Member GamerMax5's Avatar
    Join Date
    Nov 2004
    Location
    United States
    Posts
    388

    Resolved Re: Cookies in JS

    That's probably what was wrong. I didn't set an expiration date. Thanks for that.
    Last edited by GamerMax5; Jan 13th, 2005 at 01:47 PM.
    Only those who try will become.

    Find me on identi.ca

    Twitter @gfmartin05

    Linux Wrap

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width