cookie path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lisa

    cookie path

    how would i set the path to my cgi-bin directory in this code..? Lisa.

    <html>
    <body>
    <script language=javasc ript type="text/javascript">
    <!--
    function SetCookie(name, value, expires, path, domain)
    { document.cookie = name + "=" + escape(value) +
    ((expires == null) ? "" : "; expires=" + expires.toGMTSt ring()) +
    ((path == null) ? "" : "; path=" + path) +
    ((domain == null) ? "" : "; domain=" + domain);
    }
    var expiration = new Date();
    expiration.setT ime(expiration. getTime() + 60000);
    SetCookie('User name', 'Peter', expiration);
    // -->
    </script>
  • steve stevo

    #2
    Re: cookie path

    eh ?

    need a little more info

    "Lisa" <wolverina_19@h otmail.com> wrote in message
    news:cb829591.0 310280258.6cf50 ed2@posting.goo gle.com...[color=blue]
    > how would i set the path to my cgi-bin directory in this code..? Lisa.
    >
    > <html>
    > <body>
    > <script language=javasc ript type="text/javascript">
    > <!--
    > function SetCookie(name, value, expires, path, domain)
    > { document.cookie = name + "=" + escape(value) +
    > ((expires == null) ? "" : "; expires=" + expires.toGMTSt ring()) +
    > ((path == null) ? "" : "; path=" + path) +
    > ((domain == null) ? "" : "; domain=" + domain);
    > }
    > var expiration = new Date();
    > expiration.setT ime(expiration. getTime() + 60000);
    > SetCookie('User name', 'Peter', expiration);
    > // -->
    > </script>[/color]


    Comment

    Working...