note 129844 added to function.session-start

From: Date: Sat, 09 Nov 2024 14:53:31 +0000
Subject: note 129844 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-221639@lists.php.net to get a copy of this message
<?php session_start([ 'read_and_close' => true, ]); ?> The read_and_close option I believed was to work as a read only mode session To the surprise it works even if no sessionId cookie is present in the http request and generates a new sessionId. Secondly, the function with this option also generates new session files with respect to the newly generated sessionId Third, if the sessionId is invalid (no file is present with respect to sessionId) it creates a new one. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 103.44.107.108) ---- Manual Page -- https://php.net/manual/en/function.session-start.php Edit -- https://main.php.net/note/edit/129844 Del: integrated -- https://main.php.net/note/delete/129844/integrated Del: useless -- https://main.php.net/note/delete/129844/useless Del: bad code -- https://main.php.net/note/delete/129844/bad+code Del: spam -- https://main.php.net/note/delete/129844/spam Del: non-english -- https://main.php.net/note/delete/129844/non-english Del: in docs -- https://main.php.net/note/delete/129844/in+docs Del: other reasons-- https://main.php.net/note/delete/129844 Reject -- https://main.php.net/note/reject/129844 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221639) next »