All pastes #577974 Raw Edit

Mine

public php v1 · immutable
·published 2007-06-20 03:27 UTC
rendered paste body
//start the sessionsession_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'];