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

session object not loaded

Development and Programming

biberltd's avatar
biberltd
54 posts
15 years ago
biberltd's avatar biberltd

I’m trying to develop an extension and I need the session object. However, I cannot access it.

in my constructor I have this line:

$this->EE =& get_instance();

After that I can access to a variety of objects including “input” and others but not the session.

Documentation says that session is automatically loaded. I’m not sure what I’m missing; a helping-hand will be much appreciated.

Thanks,

Can Berkol

       
biberltd's avatar
biberltd
54 posts
15 years ago
biberltd's avatar biberltd

EE & CI developers are smarter than I am 😊… extensions & hooks. the session details are sent to the function as a parameter…

       
Derek Jones's avatar
Derek Jones
7,561 posts
15 years ago
Derek Jones's avatar Derek Jones

Correct, since it’s not technically loaded yet. Make sure you receive it by reference if you need to modify it while it’s being instantiated.

       

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.