471,852 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

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 2027
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 YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.