destroyed each time there is a new request from the same device to the server but the data that it has stored get kept? Cause when i do
<?php
if(isset($_SESSION)){
print_r("Session created\n");
session_start();
$_SESSION['beep'] = 'boop';
}
print_r($_SESSION);
?>
It does not work. There is an error at the print_r saying that $_SESSION does not exist, but when i include ! in my if statement, it works fine, but the data I had in it previously is still there
isset session before session start? 🤔
Обсуждают сегодня