Hi!
I have a function in a lot of pages, which redirects to a new page, if
a form has been submitted:
if (!(defined("DEB UG_INSERT") && DEBUG_INSERT) &&
!(defined("DEBU G_UPDATE") && DEBUG_UPDATE) &&
!(defined("DEBU G_SELECT") && DEBUG_SELECT)){
if ($_POST){
$_SESSION["postvalue"] = $_POST;
header("HTTP/1.1 302 Moved Temporarily");
header ("Location: ".BASE_URL.$ses s->assemble(),tru e, 302);
header("Connect ion: close");
exit();
}else{
if (isset($_SESSIO N["postvalue"])){
$_POST = $_SESSION["postvalue"];
}
}
}
In conjunction with a login form and a browser that accepts cookies
for the session handling, this leads to everyone having to enter his
login and pasword twice.
i believe this is, because the cookie do not get sent before the
header ("Location:
Has anyone an idea how to force this or send them by hand?
Cheers, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
I have a function in a lot of pages, which redirects to a new page, if
a form has been submitted:
if (!(defined("DEB UG_INSERT") && DEBUG_INSERT) &&
!(defined("DEBU G_UPDATE") && DEBUG_UPDATE) &&
!(defined("DEBU G_SELECT") && DEBUG_SELECT)){
if ($_POST){
$_SESSION["postvalue"] = $_POST;
header("HTTP/1.1 302 Moved Temporarily");
header ("Location: ".BASE_URL.$ses s->assemble(),tru e, 302);
header("Connect ion: close");
exit();
}else{
if (isset($_SESSIO N["postvalue"])){
$_POST = $_SESSION["postvalue"];
}
}
}
In conjunction with a login form and a browser that accepts cookies
for the session handling, this leads to everyone having to enter his
login and pasword twice.
i believe this is, because the cookie do not get sent before the
header ("Location:
Has anyone an idea how to force this or send them by hand?
Cheers, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Comment