Connecting Tech Pros Worldwide Help | Site Map

cookie path

Lisa
Guest
 
Posts: n/a
#1: Jul 20 '05
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>
steve stevo
Guest
 
Posts: n/a
#2: Jul 20 '05

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 JavaScript / Ajax / DHTML bytes