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

Cookie Path Issue

Development and Programming

saraking's avatar
saraking
17 posts
15 years ago
saraking's avatar saraking

I’m struggling with something and maybe some fresh eyes/minds could help.

I’m running into a situation where I’m trying to set a site-wide cookie, but I just can’t seem to get it work.

In a nutshell, I’m logging in a user (through a security realm) via siteminder and then creating an Expression Engine session with some extra data in place. After successfully authenticating with siteminder, the user is sent to a page (dashboard/authenticate) which performs some service calls to pull some data, sets a cookie (it has to be a cookie - no go for sessions only), then sends to user to a personalized landing page.

I’ve attempted a multitude of different methods for setting the cookie, from using the built in EE class to just a straight php call (

setcookie("memberData", $authData, time()+3600, "/", ".thisisthedomain.com");

) (thisisthedomain is the real domain, we’re just under a confidentiality agreement). Nothing seems to be working - the cookie is being set, but I can’t get it to target ‘/’ - the cookie is only being set for /dashboard/authenticate.

Does anybody have any ideas as to why this could be happening? Guesses are welcome.

Thanks! Sam

[Mod Edit: Moved to the Development and Programming forum]

       

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.