Reputation: 9726
I am working on API, where by default cookies are used, but also should be possile to load session data by sid.
So, scenario looks like the following:
My first idea was to use session_id()
function to load session data for specified SID, but i found that this function does not do this - it just overwrites current session id, but does not load any data for specified SID.
Is it possible to load different session in PHP for different SID?
Upvotes: 2
Views: 906