22977 Posts in 11806 Topics by 2826 members
|Go to End|
28 August 2013 at 5:28pm
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?
3 September 2013 at 5:31pm
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?
3 September 2013 at 5:45pm
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)
|Go to Top|