Click here to get back home

browser-dependent cookie behavior

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
browser-dependent cookie behavior rallabs 09-01-2006
Posted by rallabs on September 1, 2006, 8:25 am
Please log in for more thread options
I have a string of cgi scripts which successively set and use cookies
on the user's browser. The first page sets a 'dummy' cookie and
redirects to a second page which attempts to read the cookie and sends
the user a message if the read was unsuccessful, telling him to re-set
their browser to accept cookies. My problem is that with Internet
Explorer, even when it is set up properly to accept cookies, and even
though it successfully passes through the cookie test, it loses one of
the cookies when it tries to read it in a later page. It returns a
null for that cookie and that cookie only. The cookie does not have a
weird name; it is named PT. It is very frustrating because Firefox
proceeds along through the entire chain of scripts and does not lose
the cookie. I have tried it on Internet Explorer using several
different PC computers. I didn't copy down all the version numbers,
but on this computer it is
version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

One thing I don't know how to do as a new cgi scripter is to examine
the IE cookies. There's a folder on my computer named 'cookies' whose
only file is called 'index' but it's unreadable. I know how to look at
the cookies in Firefox, but it behaves properly anyway. My IE settings
are to accept all cookies from all sites.
This is a Perl question and I am posting it on a Perl newsgroup so
don't dump on me if you don't think it adheres closely enough to your
standards for posting.


Posted by Paul Lalli on September 1, 2006, 8:38 am
Please log in for more thread options
rallabs@adelphia.net wrote:

<snip non-Perl-related question>

> This is a Perl question

No. It's not.

> and I am posting it on a Perl newsgroup so
> don't dump on me if you don't think it adheres closely enough to your
> standards for posting.

The fact that your CGI script happens to be written in Perl does not
make a question about two different browsers behaving differently into
a Perl question. Your question would be the same regardless of what
language you used to write your CGI program.

Now, if you're doing something *wrong* in your Perl code that is
causing one browser to behave differently (perhaps because one
tolerates your wrong code while the other does not), then that *might*
be a Perl question, but the only way to determine that would be if you
were to post your code, which you did not do.

As for those "standards for posting" that you're so keen to
sarcastically refer to, have you actually *read* them?

Paul Lalli


Posted by Scott Bryce on September 1, 2006, 11:01 am
Please log in for more thread options
rallabs@adelphia.net wrote:

> This is a Perl question

How Internet Explorer handles cookies has nothing to do with Perl.

> and I am posting it on a Perl newsgroup

You would probably have better luck posting in a CGI newsgroup.

> so don't dump on me if you don't think it adheres closely enough to
> your standards for posting.

Being rude won't endear you to anybody here.

Similar ThreadsPosted
Re: browser-dependent cookie behavior September 1, 2006, 9:44 am
Re: browser-dependent cookie behavior September 1, 2006, 10:38 pm
HTTP::Cookie won't store sent cookie March 17, 2005, 4:28 pm
Why does this cookie set? May 11, 2007, 11:35 am
cookie failes November 22, 2004, 10:41 pm
Help with retrieve a cookie November 16, 2005, 10:19 am
How to set a cookie and redirect November 17, 2005, 5:05 pm
how to set cookie,there are some problems. April 21, 2006, 12:06 am
cookie problem. September 28, 2006, 6:43 am
CGI::Cookie problem April 12, 2007, 2:46 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap