Home  >  Article  >  Backend Development  >  How to decode php session in node

How to decode php session in node

WBOY
WBOYOriginal
2016-12-01 00:25:46961browse

I stored the php session in redis. Now we need to deal with account permissions. Part of the interface is written in node, so we need to decode the php session. I don’t know what library is there

Reply content:

I stored the php session in redis. Now we need to deal with account permissions. Part of the interface is written in node, so we need to decode the php session. I don’t know what library is there

Cannot decode. PHP's sessionid does not store a specific value, it is just a key. It is randomly generated by hashing.

  1. First get the serialized Session from Redis through the Session id passed by the client

  2. Deserialization

https://github.com/naholyr/js...

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn