All pastes #572322 Raw Edit

Miscellany

public php v1 · immutable
#572322 ·published 2007-06-17 16:45 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'];