Connecting Tech Pros Worldwide Help | Site Map

cookie path

  #1  
Old July 20th, 2005, 12:24 PM
Lisa
Guest
 
Posts: n/a
how would i set the path to my cgi-bin directory in this code..? Lisa.

<html>
<body>
<script language=javascript type="text/javascript">
<!--
function SetCookie(name, value, expires, path, domain)
{ document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain);
}
var expiration = new Date();
expiration.setTime(expiration.getTime() + 60000);
SetCookie('Username', 'Peter', expiration);
// -->
</script>
  #2  
Old July 20th, 2005, 12:24 PM
steve stevo
Guest
 
Posts: n/a

re: cookie path


eh ?

need a little more info

"Lisa" <wolverina_19@hotmail.com> wrote in message
news:cb829591.0310280258.6cf50ed2@posting.google.c om...[color=blue]
> how would i set the path to my cgi-bin directory in this code..? Lisa.
>
> <html>
> <body>
> <script language=javascript type="text/javascript">
> <!--
> function SetCookie(name, value, expires, path, domain)
> { document.cookie = name + "=" + escape(value) +
> ((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
> ((path == null) ? "" : "; path=" + path) +
> ((domain == null) ? "" : "; domain=" + domain);
> }
> var expiration = new Date();
> expiration.setTime(expiration.getTime() + 60000);
> SetCookie('Username', 'Peter', expiration);
> // -->
> </script>[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookie path dilema rjoseph answers 3 March 1st, 2008 01:53 AM
Need Help on Cookie.Path Property Boyan answers 0 November 19th, 2005 11:59 AM
Need help setting cookie path J. Bruce answers 1 July 20th, 2005 10:20 AM
cookie path problem michel answers 5 July 17th, 2005 06:30 AM