Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > browser-dependent cookie behavior

Reply
Thread Tools

browser-dependent cookie behavior

 
 
rallabs@adelphia.net
Guest
Posts: n/a
 
      09-01-2006
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.

 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      09-01-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) 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

 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      09-01-2006
(E-Mail Removed) <(E-Mail Removed)> wrote:


> One thing I don't know how to do as a new cgi scripter is to examine
> the IE cookies.



> This is a Perl question



No it isn't.

Internet Explorer is not written in Perl.


> and I am posting it on a Perl newsgroup so
> don't dump on me



No dumping, just killfiling.


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



So long!


--
Tad McClellan SGML consulting
(E-Mail Removed) Perl programming
Fort Worth, Texas
 
Reply With Quote
 
Scott Bryce
Guest
Posts: n/a
 
      09-01-2006
(E-Mail Removed) 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.
 
Reply With Quote
 
Tintin
Guest
Posts: n/a
 
      09-02-2006

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
>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.


What bizzare line of logic led you to conclude this is a Perl question?

All your questions are browser/cookie related and you don't even show any
Perl code.



--
Posted via a free Usenet account from http://www.teranews.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is different between Request.Cookie and Response.Cookie ad ASP .Net 2 01-27-2006 12:54 PM
Cookie Question (IP as domain and cookie file location) =?Utf-8?B?UGF1bA==?= ASP .Net 1 01-10-2006 08:37 PM
Any downsides to cookie assignment inside custom class using HttpContext.Current? ASP.NET 2.0 cookie fix? ASP .Net 2 08-17-2005 06:43 AM
Cookie and Session Cookie Questions. Shapper ASP .Net 1 04-27-2005 11:20 AM
Session cookie? Browser instance cookie? Ben ASP .Net 3 06-03-2004 03:41 AM



Advertisments