Guys I have a session called $_SESSION['id_session'] that contain the user ID now if i made this session in two different websites on my localhost it will share this session with both websites. Is that happening in online websites too? Here is the code that check if the used it logged in and his id is in a session
if(isset($_SESSION['id_session'])){
header("Location: home.php");
}