Monday, January 6, 2014

[codeIgniter][solved][with image] set_userdata() not work

The reason why cause this problem is your Session class haven't been initialized.
So appear this error msg:

A PHP Error was encountered

Severity: Notice
Message: Undefined property: VerifyLogin::$session
Filename: controllers/verifylogin.php
Line Number: 50


To initialize the Session class,
you can add this line:
$this->load->library('session');

And This picture is an example showed where the line i add :



Reference:
http://ellislab.com/codeigniter%20/user-guide/libraries/sessions.html

No comments :

Post a Comment