|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-28 05:49 UTC] hholzgra@php.net
[2001-11-28 05:49 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
With this piece of code the session variable is not keeping track of the increment: <?php error_reporting(63); session_start(); $abc = ''; session_register('abc'); $abc += 1; $_SESSION['abc'] += 2; print "<pre>$abc\n\n"; print_r( $_SESSION); ?> While minor alteration of above code as below the session variable works: <?php error_reporting(63); $abc = ''; session_start(); session_register('abc'); $abc += 1; $_SESSION['abc'] += 2; print "<pre>$abc\n\n"; print_r( $_SESSION); ?>