Home » Php » Using PHP session variable in perl

Using PHP session variable in perl

Posted by: admin July 12, 2020 Leave a comment

Questions:

Can I use a session variable that I have created with php in perl?

How to&Answers:

Theoretically you could: you just need to know where (and also how) the PHP session is saved. If it is a normal file-based session save handler – you just need to have access to read PHP session files. Then you can read the content out of it and unserialize it (because PHP saves all session content serialized there). For unserializing you can use PHP serialize and unserialize in Perl implementation.

Answer:

Yes, there is PHP::Session on CPAN.