|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-08-25 10:18 UTC] archinf at archinform dot de
Description: ------------ --- From manual page: http://www.php.net/session.constants --- SID: Constant containing either the session name and session ID in the form of "name=ID" or empty string if session ID was set in an appropriate session cookie. This worked in all previous versions (up to 5.6), but after update to php7 SID even contains value "name=ID" when a session cookie exists. In my PHP code cookies are used for sessions as default and as fallback (if user disables Cookies) session ID is transferred in the URL. But now the session ID is transferred everytime, because SID always contains "name=ID" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
@yohgaki: Thanks, as workaround I check for the meanwhile session cookie existence (and SID match) with something like ...if(!((isset($_COOKIE[session_name()]))&&($_COOKIE[session_name()]==session_id()))){...