Session

From: Date: Thu, 12 Dec 2002 15:02:43 +0000
Subject: Session
Groups: php.general 
Request: Send a blank email to php-general+get-128010@lists.php.net to get a copy of this message
Hi I think it is possible to use sessions without having to insert sid=$sid into every link i print out but I don’t get it to work any Ideas about what I could be doing wrong? I have a login form on a page called login.php, and if login is ok, then it sets $sid = session_id(); and prints out headers: heder(Location: index.php?sid=$sid); and it passes the sid variable to the index page and it works ok but when I click on any links on the index page I get thrown back to the login, because I made the script do that if the $sid != session_id(). session.use_trans_sid = 1 in the php config this would work if I would print out sid=$sid in every link I have on the page but I rather not. I would be greatful for any ideas about what I could be doing wrong. Regards, David

« previous php.general (#128010) next »