We have a site built using Forms based authenication in .NET, is there any way of accessing these sessions / user variables and roles in a PHP application?
+3
A:
You need to create an own ASP.NET Session State handler, that can store session data in a way that can be understood by both platforms.
The data could be stored for example in a mysql database, and .net should create a unique session cookie, witch can easily grabbed by php. If php gets the the cookie, it can read the session data from the database. But this will only work under the same domain (because of the cookies)
So if you work under multiple domains, the first step is in every case the same, but, instead of using cookies, you need to give the session id to the other page trough for e.g. the url.
Nort
2010-06-07 14:21:25