Page 1 of 1

Passing PHP sessions to ASP

Posted: Fri May 05, 2006 1:42 pm
by papaxris
I have an ASP page that needs to be protected using an authentication scheme. The authentication scheme has been fully coded and configured in PHP.

How can I have the ASP page check my PHP session to make sure the user has been authenticated?

Any pointers or information from anybody that has had experience with this would be greatly appreciated.

Posted: Fri May 05, 2006 4:47 pm
by feyd
I doubt ASP has native support for reading and understanding PHP session data so you'll have to write something to load and unpack the session data from wherever your install of PHP stores them. This is generally in text files found in a temporary directory (check your phpinfo() or php.ini for where, specifically to look.)

That I recall, the data is fairly simple to parse in a key, value string list where all values are serialized.

serialize()