Excusez moi but I don't speak french I've got a problem with session function I've always used session_register with PHP4, but now with WAMP (PHP5) the variables I pass from a page to another one are not visible
Ex. $color="red"; session_register("color" print "<a href='page2.php'>click here </a>";
and in page2.php
session_register("color" print $color;
returns blank as the $color variable is not passed from a script to another or
$_SESSION["color"]="red"; print "<a href='page2.php'>click here </a>";
and in page2.php:
(with or without session_start()) print $_SESSION["color"];
Each page I write begin with : <?php if (!isset($charset) or empty($charset)) $charset="iso-8859-1"; header("content-type:text/html; charset=$charset" session_start();
and I set session variable with, for example : $_SESSION['colonne_def']=4; $_SESSION['une_page']=false;
And I access the session variables in every page with : $page=$_SESSION['une_page']; $colonne=$_SESSION['colonne_def'];
All things work fine ; no problem in local with Wamp and on the real site. I use simple quote ' and not double quote ".
Does your problem is the same in local AND with the reel site ?
I've already found a solution on zend site but it gave me still a little problem, yours seems to be surely better At the moment I can only work in local