php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11103 different cookie behavior with module vs. cgi
Submitted: 2001-05-24 21:00 UTC Modified: 2002-01-02 13:56 UTC
From: mike at kristopeit dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.5 OS: win98
Private report: No CVE-ID: None
 [2001-05-24 21:00 UTC] mike at kristopeit dot com
when running php as cgi with this sequence set_cookie(), header(Location: new script):  new script will not see the cookie.

however, with the module it works fine.
 

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-24 21:38 UTC] sniper@php.net
Add an example script into this bug report.

 [2001-05-25 00:10 UTC] mike at kristopeit dot com
ok... i added the code before and you told me to ask for help in the support forum! argh.  anyway, here is some psuedo code.

script1.php:
set_cookie(blah);
header(Loaction: absolute to script2);

script2.php:
/* cookie is not available here in cgi version, but is in module version */
 [2001-12-12 08:18 UTC] yohgaki@php.net
Do you still have this problem with 4.1.0?
 [2002-01-02 13:56 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 03 03:01:30 2024 UTC