Hi > -----Original Message----- > From: Rosen [mailto:r.marinov@xxxxxxxxx] > Sent: Thursday, March 31, 2005 11:31 AM > To: php-general@xxxxxxxxxxxxx > Subject: Session problem > > Hi, > I have this code : > > ======== > page1.php: > <? > > $nfo["fu"]="12"; > > session_start(); > session_register(nfo); For good programmingskill always start with session_start() (one day You might print something before) > $sn=session_name(); > $nn=session_id() ; > > $web="page2.php?lang=en"; > $web.="&$sn=$nn"; > > header("Location: $web"); > ?> > =============== > page2.php: > <? > session_start(); > global $nfo; > > $uss=$nfo["fu"]; > > echo $uss; //// HERE $uss is empty! Yeah, cause that´s _not_ what the manual says: http://dk.php.net/manual/en/ref.session.php It should be $_SESSION['nfo']['fu'] = 12; -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/systemdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php