469,336 Members | 5,643 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

cookie path

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>
Jul 20 '05 #1
1 1968
eh ?

need a little more info

"Lisa" <wo**********@hotmail.com> wrote in message
news:cb**************************@posting.google.c om...
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>

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by socialism001 | last post: by
6 posts views Thread by Jason Collins | last post: by
3 posts views Thread by Ben | last post: by
6 posts views Thread by kelvlam | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.