How to decode php session in node

WBOY
Release: 2023-03-01 18:06:02
Original
988 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!