[thelist] any PHP session experts out there?

Filip Salomonsson filip at netdesign.se
Wed Dec 11 17:02:01 CST 2002


Tom Dell'Aringa <pixelmech at yahoo.com>, at 20021211T1418:
> I've been struggling with some PHP session tutorials, and I wondered
> if I could get some tips. Most of the tutorials I find seem to be for
> PHP3 not 4. The one I am using the guy says not to use superglobals
> due to security. Anyway, I am doing this very simple code:

Since you're using globals, you only need the
session_register function, if I recall correctly.

<?
session_start();
session_register("name");
header("Location: products.php");
?>

Then, on the products.php page, just <? echo $name ?>;.

/filip
--
do not leave it is not real



More information about the thelist mailing list