Solved

cookies/MSIE

Posted on 1997-04-27
1
282 Views
Last Modified: 2013-12-25
Setting cookies, which works like a dream in any version of Netscape, works poorly in MSIE, at least using the following format:

$header = "Content-type: text/html\n\n";
$header = "Set-Cookie: adel=$user_id; expires=09-Sep-99 01:00:00 GMT; path=/;\n"."$header";

In some versions of MSIE, the cookie is never set. In
some, it's set, but with the wrong value. For example, if I use this form element and choose Obscene:

<SELECT NAME="linespeed">
<OPTION VALUE=0>Standard (14.4, 28.8)
<OPTION VALUE=1>Impressive (56K, ISDN)
<OPTION VALUE=2>Obscene (T-1, Cable Modem, T-3)
</SELECT>

..in netscape, it works perfectly. In some MSIEs,
I'll get the cookie incorrectly set to Standard.
In other MSIEs, I'll get no cookie at all.

Even in those versions, I know it's possible to set a cookie, because my Apache server sets one.
So how does one set a cookie that's recognized properly
by both NS and MSIE?
0
Comment
Question by:bleak
1 Comment
 

Accepted Solution

by:
bigbison earned 100 total points
ID: 1827949
Hi,
The http and cookie protocols supports two formats for time and date:

  Wednesday, 09-Sep-99 01:00:00 GMT
or
  Wed, 09 Sep 1999 01:00:00 GMT

You forgot the day of the week !

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question