Parse PHP Session in Javascript

前端 未结 4 809
太阳男子
太阳男子 2021-02-08 12:07

I have recently gone into extending my site using node.js and have come to realisation I need a session handler for my PHP sessions. Now everything was cool and dandy and node.j

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-08 12:51

    Here is a session_decode function based on the unserialize function of phpjs: https://github.com/vianneyb/phpjs/blob/master/functions/var/session_decode.js

    works for me!

提交回复
热议问题