We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Setting additional user session data failing

Development and Programming

Kevin Gerich's avatar
Kevin Gerich
213 posts
14 years ago
Kevin Gerich's avatar Kevin Gerich

I am attempting to set some user session data using the session class.

something like:

/**
 * Load the Session library
 */
$this->EE->load->library('session');

$this->EE->session->set_userdata('orderNumber', $orderNumber);

gives me the error:

Fatal error: Call to undefined method EE_Session::set_userdata() in /www/eh14243/public_html/control/expressionengine/libraries/Functions.php(650) : eval()’d code on line 87

however I can run this line:

$this->EE->session->set_flashdata('orderNumber', $orderNumber);

I’m assuming I can run all the CodeIgniter methods? Any ideas?

Thanks,

Jim

EDIT: This fails too.

$this->EE->session->keep_flashdata('orderNumber')
       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

The EE session class is not the same as the CI Session class. Take a look at /system/expressionengine/libraries/Session.php.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.