CodeIgniter Forums

Full Version: Debugging $_SESSION in a view
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi all,

I'm trying to debug $_SESSION within a view using something similar to:

<?php log_message('debug', "SESSION INFO: ".print_r($_SESSION, TRUE)); ?>

I'm having the following spit out back at me:

ERROR - 2007-10-02 18:19:36 --> Severity: Notice --> Undefined variable: _SESSION /Applications/MAMP/htdocs/f1auto_ci/system/application/views/console/car_info_view.php 15

Thank you for any insight. :-)

- sf

El Forum

In a default installation of CodeIgniter isn't the session cookie $_COOKIE["ci_session"] aka $_REQUEST["ci_session"].

I found this helpful:

When using the standard session class

And I found this for Native Sessions: