L
Lisa
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>
<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>