Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP ASP Sharing Sessions

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.

like image 314
Cameron Owen Avatar asked Jun 26 '26 03:06

Cameron Owen


2 Answers

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.

like image 83
symcbean Avatar answered Jun 27 '26 17:06

symcbean


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.

like image 23
geekuality Avatar answered Jun 27 '26 15:06

geekuality