note 51833 deleted from function.session-start by cmb
| From: | cmb@php.net | Date: | Fri, 15 May 2015 19:40:23 +0000 |
| Subject: | note 51833 deleted from function.session-start by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202559@lists.php.net to get a copy of this message | ||
Note Submitter: Jose Cavieres
----
For the problem of session lost after of redirect with header location...
Try with this:
<?
session_start();
$_SESSION['mySession'] = "hello";
header ("Location: xpage.php");
exit(); //This sentence do the magic
?>