api - Is it possible to load session by SID in php? -


i working on api, default cookies used, should possile load session data sid.

so, scenario looks following:

  1. client makes request cookie and/or sid parameter
  2. we check, if sid defined - load session data sid
  3. if sid not defined - use sid, defined in cookie

my first idea use session_id() function load session data specified sid, found function not - overwrites current session id, not load data specified sid.

is possible load different session in php different sid?

you need use session_id before call session_start


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -