All pastes #595313 Raw Edit

Untitled

public php v1 · immutable
#595313 ·published 2007-06-29 13:20 UTC
rendered paste body
<?php//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'];?>