|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-05-30 06:46 UTC] mfischer@php.net
[2002-08-23 08:04 UTC] mfischer@php.net
[2002-10-03 22:41 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
This code don't work properly: ---- <?php session_start(); if (get_cfg_var('register_globals')) { if (!session_is_registered('step')) { session_register("step"); $step = 0; } } else { if (!isset($_SESSION['step'])) { $_SESSION['step'] = 0; } } echo $_SESSION['step']++; echo session_encode(); ?> <br><A HREF="<?php echo $_SERVER['PHP_SELF']?>">Reload</A> ---- If register_globals is On, reload will increment counter. If register_globals is Off, session will "read_only" like. It create session file with zero length. Any write not occurs. session_encode() returns a empty string;