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

Recommend way to start a php session in an EE module?

Development and Programming

aja1234's avatar
aja1234
9 posts
8 years ago
aja1234's avatar aja1234

What is the recommended way to start a php session in an EE module.

I am using EE 2.9.4 and have a custom module. In the constructor I call session_start(). When I look at the cookie that gets created the cookie path is wrong. It is set to the path of the page instead of “/”.

When I call session_start in a plain php app the default behavior of session_start is to set the cookie path at root “/”.

       

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.