Parse PHP Session in Javascript

前端 未结 4 810
太阳男子
太阳男子 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:43

    I'm relatively sure PHP uses the serialize and unserialize functions to handle session data.

    There is a JavaScript implementation of unserialize in PHP.JS, you can find it here: http://phpjs.org/functions/unserialize

提交回复
热议问题