469,352 Members | 2,150 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Reading cookies created by CGI program

Hi,
Within client-side Javascript code, I am not able to read cookies set
by Perl CGI program. Is that normal? Could I change anything in the
way cookies are set from the CGI program to be able to read them later
in Javascript?

Thanks
Thomas.
Jul 20 '05 #1
2 2140

"Thomas Theakanath" <th******@hotmail.com> schreef in bericht
news:78**************************@posting.google.c om...
Hi,
Within client-side Javascript code, I am not able to read cookies set
by Perl CGI program. Is that normal? Could I change anything in the
way cookies are set from the CGI program to be able to read them later
in Javascript?


The CGI script should create a domain cookie with the 'domain=.domain.com'
parameter and your script should run on the same domain as specified by this
parameter for this to work for you.
JW

Jul 20 '05 #2
I tried it; but doesn't seem to work. Is there any resources available
on the net to know more about this requirement?

"Janwillem Borleffs" <jw*@jwbfoto.demon.nl> wrote in message news:<3f***********************@news.euronet.nl>.. .
"Thomas Theakanath" <th******@hotmail.com> schreef in bericht
news:78**************************@posting.google.c om...
Hi,
Within client-side Javascript code, I am not able to read cookies set
by Perl CGI program. Is that normal? Could I change anything in the
way cookies are set from the CGI program to be able to read them later
in Javascript?


The CGI script should create a domain cookie with the 'domain=.domain.com'
parameter and your script should run on the same domain as specified by this
parameter for this to work for you.
JW

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Marcin Gorzynski | last post: by
7 posts views Thread by John Dann | last post: by
2 posts views Thread by jack | last post: by
9 posts views Thread by Mike Reed | last post: by
7 posts views Thread by Nez | last post: by
3 posts views Thread by mosesdinakaran | last post: by
29 posts views Thread by Jerim79 | last post: by
3 posts views Thread by Patrick Dugan | last post: by
13 posts views Thread by swetha | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | 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.