note 58707 rejected from function.session-start by nlopess

From: Date: Sun, 13 Nov 2005 09:33:28 +0000
Subject: note 58707 rejected from function.session-start by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98499@lists.php.net to get a copy of this message
Note Submitter: kinns at 126 dot com ---- Why session can't pass to another page?(use php 4.4.0) I wrote two php pages: 1.php <? session_start(); $_SESSION["login"] = true; $_SESSION["admin"] = "name"; echo "<a href=\"2.php\" target=\"_blank\">2.php</a>"; ?> 2.php <? session_start(); var_dump($_SESSION); ?> i access 2.php through 1.php , but it outputs: array(0){} Why ? i have tried many times . but sometimes it works as i want but more times it doesn't work!

« previous php.notes (#98499) next »