Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーに 2 つのアプリケーションがあり、それぞれ $_SESSION['user'] を使用しています。一方にログインすると、もう一方のアプリケーションにも自動的にログインします。問題は、両方のセッションが異なる ID を使用しているため、パートナー アカウントに自動的にログインすることです。セッション名を変更せずにこれを防ぐにはどうすればよいですか?
使用する
session_name('ses_mysite'); session_start();
それは私のために働いています:)
または使用
session_set_cookie_params();