note 72858 deleted from ref.session by didou
| From: | didou@php.net | Date: | Sat, 03 Feb 2007 15:01:18 +0000 |
| Subject: | note 72858 deleted from ref.session by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122668@lists.php.net to get a copy of this message | ||
Note Submitter: wivani at gmail
----
Snippet 1
if ( !isset($_SESSION['created']) )
{ session_regenerate_id();
$_SESSION['created'] = TRUE;
$_SESSION['page_i_Cnt'] = 0; // see below; i = 1, 2, ...
}
Snippet 2
<?php require_once('session.inc'); ++$_SESSION['page_1_Cnt']; ?>
Is it just a typo, or did you mistakingly mix page_i_Cnt and page_1_Cnt (i <> 1)?
Wim