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

Can’t set cookie/session in plugin

Development and Programming

Musa's avatar
Musa
124 posts
15 years ago
Musa's avatar Musa

Hello,

I’m trying to set cookie from plugin, that doesnt working. my code is below -

$this->EE->functions->set_cookie('field', $val);

Also, how can i store some data in expressionengine session?

Thanks Musa

       
the3mus1can's avatar
the3mus1can
426 posts
15 years ago
the3mus1can's avatar the3mus1can

Are you receiving any error messages? How are you accessing the cookie value after you set it?

As far as sessions go I generally just use PHP sessions - $_SESSION.

       
esset's avatar
esset
191 posts
15 years ago
esset's avatar esset

Just add a +1 to this: http://ellislab.com/forums/viewthread/176995/

😊

       

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.