note 53309 deleted from function.session-start by bjori
| From: | bjori@php.net | Date: | Sun, 16 Apr 2006 00:29:25 +0000 |
| Subject: | note 53309 deleted from function.session-start by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108218@lists.php.net to get a copy of this message | ||
Note Submitter: ventr[at]wp.pl
----
As a side note, if You use in your script
<?
session_start();
$_SESSION["foo"] = 'bar';
session_write_close()
require("some_script.php");
?>
//some_script.php
<?
session_start();
$tmp = $_SESSION["foo"];
session_write_close();
print("$tmp");
?>
In required script session values aren't visible.
Only way is to redirect browser to some_script.php
and then sessions start to work.
This happens at Windows platform. If someone could input
results from Unix/Linux platform, it would be nice then.
Still have no idea how to put working sessions in required
script, hope someone will save time from avoiding this.