Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Blank Set-Cookie Header

Aloittaja trlacey, helmikuu 22, 2005, 05:00:14 AP

« edellinen - seuraava »

trlacey

Hey Guys,

Is this intentional to send a blank Cookie in Display.php - Line 814?



   // Send the attachment headers.
   header('Pragma: ');
   header('Cache-Control: max-age=' . (525600 * 60) . ', private');
   if (!$context['browser']['is_gecko'])
      header('Content-Transfer-Encoding: binary');
   header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 525600 * 60) . ' GMT');
   header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($filename)) . ' GMT');
   header('Accept-Ranges: bytes');
   header('Set-Cookie:');
   header('Connection: close');

[Unknown]

Yes, it is.  This replaces the existing header and makes it possible for the browser to cache the attachments and avatars.

-[Unknown]

trlacey


trlacey

I've had this complaint quite often from members:

"In IE (what else?), if you preview a message containing a link to
an image and then try to post, you get a "you have already submitted
this post" error. Except the post hasn't been submitted at all."

This may be coincidence, but when I disable the Blank Cookie, it seems to fix the problem.  Maybe it's something I'm doing in my Webserver.

What do you think?

[Unknown]

I'm pretty sure that's a coincidence.

Are these members viewing your forum with more than one window at once?

-[Unknown]

trlacey

Thanks Unknown,

Some are using more than one flavour of Browser at the time.  Netscape, Firefox and IE.  The problems always seem to be with IE regarding Cookies.

I've re-enabled the Blank Cookie and the Error Message hasn't shown up again yet.

Advertisement: