How to read session values ​​from another session instance in PHP?

I am doing something in PHP where I need to read session values ​​for another instance of the session. Example

Browser1: $ _SESSION ['value'] = "user1";

Browser2: $ _SESSION ['value'] = "user2";

Browser 1 will need to get the value "user2" from a specific request. The request will also contain a cookie (key, value).

How can i do this?

Thanks Wael

+3
source share
3 answers

1 PHP server that processes SSO (one character), the other is a ruby ​​on rail (ROR) web application

[...]

, ROR SSO .

. .

SSO . , , :

  • : , .
  • : , .
  • : , .
  • .
  • . , .
  • . , , .
  • .
  • , , . , , .
  • , . . ( . , SSL .)
  • , .

"" , .

. . , .

, . , URL-, , . URL- , , (, , HMAC), , - cretin .

?

+4

, . cookie /.

- , .

+1

The default session storage is a file. You can access every file, like any other file . Session data is encoded and must be decoded before you can use it. There are a number of solutions for this in the comments for

0
source

Source: https://habr.com/ru/post/1756505/


All Articles