Passing PHP sessions to ASP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
papaxris
Forum Newbie
Posts: 7
Joined: Wed Apr 19, 2006 10:04 am

Passing PHP sessions to ASP

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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()
Post Reply