472,122 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 2179

"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 leo001 | 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.