Sessions problem w/ header()

From: Date: Wed, 06 Dec 2000 18:30:18 +0000
Subject: Sessions problem w/ header()
Groups: php.general 
Request: Send a blank email to php-general+get-28941@lists.php.net to get a copy of this message
Hi I'm running PHP 4.0.3pl1 with -enable-trans-sid and working with sessions good. But then I wrote a simple script to authentificate an user, if he match then I set_register some variables and then redirect to other page via header(), atually I start that page with session_start() too but when I try to read the session variables don't exist, please point me if I'm doing something wrong, this is the code : <? session_start(); // MYSQL Stuff if ($login = $resultado[0] and $password = $resultado[1]) { $id = $resultado[2]; $log = $resultado[0]; $pass = $resultado[1]; session_register("$id"); session_register("$log"); session_register("$pass"); header ("Location: http://$HTTP_HOST/$FILES_DIR/login_ok.php"); exit(); } else { header ("Location: http://$HTTP_HOST/$FILES_DIR/templates/error_login.html"); exit(); } ?> Hope any one can help me. Thanks in advance. Angel.

« previous php.general (#28941) next »