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.
Passing PHP sessions to ASP
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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()
That I recall, the data is fairly simple to parse in a key, value string list where all values are serialized.
serialize()