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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -