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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -