note 129867 added to function.session-encode

From: Date: Sun, 24 Nov 2024 05:12:42 +0000
Subject: note 129867 added to function.session-encode
Groups: php.notes 
Request: Send a blank email to php-notes+get-221668@lists.php.net to get a copy of this message
The session_encode and session_decode functions are incomplete. Because there is no option to collect the output values for session_decode or input an array in session_encode. I faced this issue while trying to implement custom session using session_set_save_handler. It led me to limit the functionality to particular serialize_handler and had to hardcode the encode and decode functions like serialize and unserialize for option ['serialize_handler' => 'php_serialize'] instead of session_encode and session_decode once i am done with defining the encoding algo. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 103.10.226.235) ---- Manual Page -- https://php.net/manual/en/function.session-encode.php Edit -- https://main.php.net/note/edit/129867 Del: integrated -- https://main.php.net/note/delete/129867/integrated Del: useless -- https://main.php.net/note/delete/129867/useless Del: bad code -- https://main.php.net/note/delete/129867/bad+code Del: spam -- https://main.php.net/note/delete/129867/spam Del: non-english -- https://main.php.net/note/delete/129867/non-english Del: in docs -- https://main.php.net/note/delete/129867/in+docs Del: other reasons-- https://main.php.net/note/delete/129867 Reject -- https://main.php.net/note/reject/129867 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221668) next »