I need to be able to read the same session variables defined in PHP also by perl-scripts on the same server. I have tried to find a perl-module which would be able to do this, but haven't find any.
The format in which PHP saves session information (to /tmp by default) doesn't seem to be too complicated. It looks something like this:
variable1|s:4:"1234";variable2|s:6:"123456";!variable3|
Now my plan is to write myself a perl-script which reads these variables, but as I don't know the exact format of this file, I'm afraid that I will encouter some unpleasant surprises. Can anyone tell how exactly are these variables stored in this file?