Welcome Guest, Not a member yet? Register   Sign In
Debugging $_SESSION in a view
#1

[eluser]stevefink[/eluser]
Hi all,

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

Code:
<?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
#2

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

I found this helpful:
http://ellislab.com/codeigniter/user-gui...sions.html

When using the standard session class

And I found this for Native Sessions:
http://codeigniter.com/wiki/Native_session/

George




Theme © iAndrew 2016 - Forum software by © MyBB