Results 1 to 2 of 2

Thread: question about cookie

  1. #1
    Join Date
    Feb 2011

    question about cookie

    When I see code like this:
     document.cookie = name + "=" + val + expires + "; path=/";
    what is the "; path=/" for ?

    I mean the val storing the value of the cookie, it is set before, and the expires set when will the cookie expired, but the last part, I don't understand why is it needed but I have seen this in other code as well.

  2. #2
    Join Date
    May 2006
    Somewhere behind your screen

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles