Rewrite Module Session problem
- From: Cristisor <cristisor.ac@xxxxxxxxx>
- Date: Mon, 29 Sep 2008 14:57:19 -0700 (PDT)
Hi. I have this problem and I don't know how to solve it. This code
that you see bellow is included in 3 web pages and I go through all 3
one after the other. In every situation the status is 0. The first 2
times $_SESSION['POST'] is not set, but the 3rd time it is set and it
is empty, and I can't figure why. The first 2 times I do exactly the
same thing and nowhere else in the code I use $_SESSION['POST']. If
Rewrite Module is not activated things are ok, I don't have the
problem. But when it is activated, this thing happens.
if (isset($_SESSION['POST'])) {
$_POST = $_SESSION['POST'];
unset($_SESSION['POST']);
}
....
if ($status) {
$_SESSION['POST'] = $_POST;
header("Location: ... ");
die;
}
If I use "if (!empty($_SESSION['POST'])) { }" instead of "if
(isset($_SESSION['POST'])) {}" I have no problem with Rewrite Module
activated.
Maybe someone has any ideea. Thank you very much!
.
- Follow-Ups:
- Re: Rewrite Module Session problem
- From: Jerry Stuckle
- Re: Rewrite Module Session problem
- Prev by Date: Re: A/B split testing on PHP built website
- Next by Date: Re: Can't addFile() in SimpleTest Test Suite
- Previous by thread: SMF PHP error... Am I missing something subtle in the PHP language syntax?
- Next by thread: Re: Rewrite Module Session problem
- Index(es):