php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24117 Would be useful if PHP with "enable-trans-sid" modified "Location" header field
Submitted: 2003-06-10 16:15 UTC Modified: 2003-06-10 16:22 UTC
From: marekm at aptus dot pl Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.2 OS: Linux
Private report: No CVE-ID: None
 [2003-06-10 16:15 UTC] marekm at aptus dot pl
I've just tested my session-using-site with cookies disabled in the browser and noticed, that PHP doesn't always propagate session SID (even with enable-trans-sid).
The problem is that I often use:

Header("Location: somewhere.php");

which doesn't propagate session id. 

I think, it would be nice if PHP modified the header field automatically the same way it is done in A HREF's.

Regards,
Marek Matula

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-10 16:22 UTC] derick@php.net
1. You need to always use a full absolute URI in the Location: header, and 2. You can add the SID yourself as described here:
http://www.php.net/manual/en/ref.session.php#session.constants
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 00:01:28 2024 UTC