Trying to limit a session to one minute, but somehow the session is still available after 1 minute. Am I using it wrong? I read that when I set a Value the session will expire in X Minutes, but sadly they don't.
Here's the code:
<?php
session_cache_limiter(1);
session_start();
if( isset( $_SESSION['counter'] ) ) {
$_SESSION['counter'] += 1;
}else {
$_SESSION['counter'] = 1;
}
$msg = "You have visited this page ". $_SESSION['counter'];
$msg .= " times in this session.";
?>