header and session?

From: Date: Sun, 24 Mar 2002 23:20:57 +0000
Subject: header and session?
Groups: php.general 
Request: Send a blank email to php-general+get-89942@lists.php.net to get a copy of this message
1.php? 2.php session_start(); session_start(); .......... .......... $_SESSION['a'] =$a; echo $_SESSION['a']; $_SESSION['b'] =$b; echo $_SESSION['b']; header("location: 2.php"); after jump to 2.php ,there is an warning: undefined index a ,b if i change 1.php to session_start(); .......... $_SESSION['a'] =$a; $_SESSION['b'] =$b; <a href='2.php' >go on </a> it works well! Best regards and thanks in advance, bob

« previous php.general (#89942) next »