I need to use the session variables set in silverstripe in some php pages to get user details for the member who is logged in. Is there any way to do it?
Thanks!
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I need to use the session variables set in silverstripe in some php pages to get user details for the member who is logged in. Is there any way to do it?
Thanks!
If you're using the same domain sharing cookies is possible.
Sessions are a bit harder. You would need to pass in the session ID from one site to another and re-start the session using the given ID. It's potentially a problem with security.
What are you trying to achieve with sharing of variables between different scripts?
I was building an extension for a silverstripe system on php. Anyways got the thing working moments after posting this query :) the same domain allows sharing session variables as well (which for some reason I thought wouldn't work and hence didn't try)
Thanks anyways!