0

I have two web sites: one built with aspx and the other built with php. Both apps have a log in system. I need it so that the user can log in to the php site and when they visit the aspx site they continue being logged in and vice versa. So basically a log in that works for both different sites. How do I develop this?

1 Answer 1

2

Three thoughts come to mind:

  1. .NET typically stores login in a cookie, you could update the forms auth to save a cookie for your other site and update the other site to do the same. Then have each site look for the cookie.

  2. Save your sessions in a database and then have each site hit the same sessions database.

  3. Use something like memcache to save sessions and have each site read from there.

Sign up to request clarification or add additional context in comments.

7 Comments

How would I accomplish no. 2?
Are you using a framework of any sorts? Some of them already support it.
Otherwise you would have to update the login process to write to a database table that would have to be check upon visit to the other site for an active session and then auto log them in. You would also then need a script to clear old sessions, e.g. inactive for 20 minutes.
No framework from php. I think .net for aspx. Would the session parameters between aspx and php be compatible?
You would probably need to write some logic to make them.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.