シングルサインオンスクリプトを探しています PHPを使用します。それはあなたが検索する必要がある用語です。単純なモデルは次のようになります:
サイト:https://auth.local/ :
<?php
// Get the request.
// Validate the session.
// Pass a Secure Hash and log the user in to the main domain.
?>
サイト:https://site1.local/ :
<?php
// Check if there is a session.
// If already logged in, no problem.
// If not, send him back to auth.
header("Location: https://auth.local/?redirect_to=https://site1.local/");
サイト:https://site2.local/ :
<?php
// Check if a session is there.
// If already logged in, no problem.
// If not, send him back to auth.
header("Location: https://auth.local/?redirect_to=https://site2.local/");
質問の回答を参照してください