All pastes #568491 Raw Edit

Unnamed

public php v1 · immutable
#568491 ·published 2007-06-15 15:49 UTC
rendered paste body
<?phperror_reporting(E_ALL);session_start();//check if the counter is set and if not, initialize itif(!isset($_SESSION['counter'])) {    $_SESSION['counter'] = 0;}//increment the session counter$_SESSION['counter']++;//display itecho 'Session counter is '.$_SESSION['counter'];?>