CodeIgniter Forums
PHP read the session of CI3.02 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: PHP read the session of CI3.02 (/showthread.php?tid=63493)



PHP read the session of CI3.02 - hanchengluo - 11-06-2015

CI:
var_export($_SESSION);

display

array ( '__ci_last_regenerate' => 1446806450, 'group' => 'admin', 'group_user' => 'admin@admin.com', )

===
PHP:
<?php
session_start();
var_export($_SESSION);
?>
display

array ( )



I want to know how to read the session of CI3.02 by PHP.
Confused


RE: PHP read the session of CI3.02 - PaulD - 11-06-2015

I am not sure why you would need that info but if you are storing sessions in the database, you can just read the session table like any other table.

Hope that helps,

Paul