Hello,
I would like to share the development of a website between PHP, mostly for the huge choice of frameworks and template engines, and Lua for some parts of the website especially for performance and managing a lot of websockets opened at the same time.
For doing that I need to retrieve some PHP session variables in Lua in order to check for example the userId and some other information.
So I have configured PHP with PHPREDIS to store PHP sessions in REDIS.
In Lua I can access the sessions in REDIS using the phpsessid retrieved by the cookie as the REDIS key.
My question: Is there a PHP session data to Lua parser or should I develop it from scratch?
Jérôme