php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74847 strange session encoded
Submitted: 2017-07-03 12:42 UTC Modified: 2018-02-28 22:16 UTC
From: aurelien at esysteme dot com Assigned:
Status: Open Package: Session related
PHP Version: 5.6.30 OS: Redhat 6.9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: aurelien at esysteme dot com
New email:
PHP Version: OS:

 

 [2017-07-03 12:42 UTC] aurelien at esysteme dot com
Description:
------------
PHP version 5.5.27

I don't know where is the problem exactly but when I unserialize session I got somthing strange as :

[PARAMETRES] => PAGE_PARAMETRES[MOIS]=&PAGE_PARAMETRES[CUTOFF_MONTH_YYYYMM]=201704[...]&PAGE_PARAMETRES[ENDING_DATE_WP_BASELINE]=20180331";}i:14;a:3:{s:10:"CDDIALOGUE";s:3:"FF3";s:6:"CDMNTR";s:4:"FF32";s:10:"PARAMETRES";s:3419:"PAGE_PARAMETRES[CDORG]=A00IB

i tried unserialise from many version of php and I have same result, I think I got data unserialized correctly but i don't know why

Test script:
---------------
foreach (glob("/data/www/alstom/session/sess_48hoc3nks0f8fjb4d36hggg0k7") as $filename) {
        echo "$filename occupe " . filesize($filename) . "\n";

        session_destroy();
        session_start();

        session_decode(file_get_contents($filename));
        print_r($_SESSION);

}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-28 22:16 UTC] cmb@php.net
-Package: Unknown/Other Function +Package: Session related
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Jun 25 13:01:48 2018 UTC