I have be asked to build a site that is to be built in PHP but have found that they have another system running which they would like to keep that is build in ASP.net.
Is it possible to have a single sign on e.g the php site will allow users to register and come onto the site and then would those details be able to pass into the MSSQL database or atleast talk to the ASP.net backend or something along the lines of with a session and a cookie that is stored in the browser?
Or would the simple solution be to extend the functionality of the ASP.net backend and use ASP on the front end to so the whole site is ASP.net.
You're talking about lots of different things here.
Yes, ASP can read/write PHP session data files (try google for some implementations).
Yes, you might be able to use the same authentication tokens in both systems - assuming you know how ASP stores/hashes the data
Yes, you could implement a webservice in ASP to provide authentication services to the PHP code
Yes, you could access both systems using a single-sign on.
No you can't just drop in your PHP and expect it to work.
I dont know for sure if this is possible but I'd start looking the solution from an external storage like Memcached - I assume that there is .net extensions for it also, that way you could create your own session storage with access from both sides.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With