note 129843 added to function.session-start

From: Date: Sat, 09 Nov 2024 13:30:08 +0000
Subject: note 129843 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-221638@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/129843 Del: integrated -- https://main.php.net/note/delete/129843/integrated Del: useless -- https://main.php.net/note/delete/129843/useless Del: bad code -- https://main.php.net/note/delete/129843/bad+code Del: spam -- https://main.php.net/note/delete/129843/spam Del: non-english -- https://main.php.net/note/delete/129843/non-english Del: in docs -- https://main.php.net/note/delete/129843/in+docs Del: other reasons-- https://main.php.net/note/delete/129843 Reject -- https://main.php.net/note/reject/129843 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221638) next »