[Fwd: Possible bug with set-cookie]

Manlio Perillo manlio_perillo at libero.it
Thu Oct 11 16:09:26 MSD 2007


Matteo Niccoli ha scritto:
> Anyone can help me about this?
> 
> -------- Messaggio Originale  --------
> Oggetto: Possible bug with set-cookie
> Data: Thu, 04 Oct 2007 15:24:57 +0200
> Da: Matteo Niccoli <matteo.niccoli at staff.dada.net>
> A: nginx at sysoev.ru
> 
> Hi,
> 
> I have this script:
> 
> <?php
> setcookie('testcookie',str_repeat('a',$_REQUEST['l']), (time()+(86400*30)));
> ?>
> 

> If I execute it, with:
> 
> http://$url/test.php?l=1799
> 
> it works.
> 
> If I switch from 1799 to 1800, nginx stop serving this page.
> 

It may be a problem with buffer size.
What is the total size of the cookie header?

Have you tried to enable debug mode?
You should look in the log file for error messages.

> It appens only with nginx. Apache is works good maybe by deleting cookie or
> simple overwriting another.
> 
> How can solve this?
> 

Regards  Manlio Perillo





More information about the nginx mailing list