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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marekm at aptus dot pl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 17:01:58 2024 UTC