Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
In the PHP doco, it states that once a cookie is set, it can only be retrieved after the page/browser reloads.
Are cookies in SS the same? ie. If I set one say in a controller, and the page loads, will it take a reload for the cookie data to be retrieved?
Please advise - I am a complete & total noob to SS.
Test it and see what happens! If that's what setcookie() requires then it's likely it will be the same as SilverStripe. Cookie in SilverStripe is simply a basic wrapper around setcookie