Connecting Tech Pros Worldwide Help | Site Map

cookie path

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 11:24 AM
Lisa
Guest
 
Posts: n/a
Default 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>

  #2  
Old July 20th, 2005, 11:24 AM
steve stevo
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.