note 53984 deleted from ref.session by nlopess
| From: | nlopess@php.net | Date: | Mon, 20 Jun 2005 09:57:16 +0000 |
| Subject: | note 53984 deleted from ref.session by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90674@lists.php.net to get a copy of this message | ||
Note Submitter: razvan_bc at yahoo dot com
----
#############
******************
chsession2.php
******************
-----------------------------
<?php
session_start();
foreach($_POST as $ch => $vl)
{
$_SESSION[$ch]=$vl;
}
header("Location: ".$url);
exit();
?>
------------------------------
Notes:
here we will save new _SESSION values
and will redirect to index.php
To test this script ..input values:
key : monitor value:lcd
then
key : whitehouse value:georgebush
now try
key : monitor value:clasic
what you see there? the same key's value was replaced with a new value!
GREAT!
© you can use this script,modify,sell and more
Thanks for you read all this stuff! ,
xpectmore @ scriptlance.com(the best freelance website on the world)
3xpectmore.com 01:30 AM gmt+2 ,Thuesday June,21 Romania
Special thanks to Php team , zend , apache, linux