473,388 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 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 2213

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Marcin Gorzynski | last post by:
Hi Our partner is using our page in a frame. That couses a problem because our domain is unable to issue the cookie also session does not work. each time you click in the frame new session is...
7
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should...
2
by: jack | last post by:
HI . i have created a cookiie in one page and i am trying to get in other page .. but not getting to desired result. im able to create cookie and reade it in the same page but not able to get or...
9
by: Mike Reed | last post by:
I must be having a "senile" day! I cannot recall, nor get to work, code to read a cookie's expiration date/time in an ASP page/VBScript. What am I missing? *** Sent via Developersdex...
7
by: Nez | last post by:
Help needed! Hello, I have looked everywhere for a solution to my problem and this is pretty much my last resource. I have created a table in a span with the innerhtml command in my code behind....
3
by: mosesdinakaran | last post by:
Hi Where does the cookies stored in the client machine that php creates after calling session_start() function. I am using IE... I checked in the following folders but no cookies are stored....
29
by: Jerim79 | last post by:
I did try to find the answer to this before posting, so this isn't a knee jerk reaction. What I am trying to accomplish is to have a script that opens a cookie, reads a value, and then use a...
3
by: Patrick Dugan | last post by:
I have a mix of ASP pages and ASP.NET pages within a web site. One of the first asp pages creates several cookies with values. When I try to read those same cookie values in the ASP.NET pages the...
13
by: swetha | last post by:
HI Every1, I have a problem in reading a binary file. Actually i want a C program which reads in the data from a file which is in binary format and i want to update values in it. The file...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.