note 54372 deleted from function.session-write-close by betz

From: Date: Sat, 02 Jul 2005 09:24:17 +0000
Subject: note 54372 deleted from function.session-write-close by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91296@lists.php.net to get a copy of this message
Note Submitter: michael_php at favorsoftware dot com Reason: useless ---- <?php # # WARNING: updating $_SESSION variables _after_ a "session_write_close" does not work! # session_start(); $_SESSION['test'] = 'bad old data'; session_write_close(); $_SESSION['test'] = 'good new data'; # changes to variable are not saved session_write_close(); include('test2.php'); ?> <?php # # test2.php # session_start(); print '<html><body><br>'; print 'test='. $_SESSION['test']; # displays 'test=bad old data' print '<br></body></html>'; ?>

« previous php.notes (#91296) next »