+ 2

PHP Session format

Saves data as files with PHP SESSION. So far ok, but does this format fit any layout (e.g. JSON, XML, YAML) format? key:data;| key:data;| object:{}|

4th Nov 2020, 7:51 AM
RAMAZAN AKBAL
RAMAZAN AKBAL - avatar
6 ответов
+ 1
I thing JSON fit : look to www.php.net
9th Nov 2020, 9:33 PM
Václav Dostál
Václav Dostál - avatar
+ 1
Václav Dostál That's what I thought, but json Does not support ;
10th Nov 2020, 9:32 AM
RAMAZAN AKBAL
RAMAZAN AKBAL - avatar
0
echo json_encode($_SESSION);
10th Nov 2020, 6:58 PM
Václav Dostál
Václav Dostál - avatar
0
stackowerflow.com/question/5374368/serialise-php-session-variables-into-json-format
10th Nov 2020, 7:00 PM
Václav Dostál
Václav Dostál - avatar
0
Václav Dostál You don't understand me, this series I'm counting on python to want to read this session.
10th Nov 2020, 7:06 PM
RAMAZAN AKBAL
RAMAZAN AKBAL - avatar
0
I see you have some project with php session and you need read this session somewhere else. This is tough.
10th Nov 2020, 7:15 PM
Václav Dostál
Václav Dostál - avatar