Session don"t store after header("Location: ...")
Session don"t store after header("Location: ...")
am 28.03.2006 01:49:25 von Giacomo
Hi everybody, I have a problem with mysql session handler and redirect.
My situation:
- mysql session handler
- one page is "posted" to another page, that saves a session variable
and redirect to the first page again.
If I do the redirect the variable is not properly setted, otherwise it's
all ok.
My PHP version is 4.3.10-16
They said me I have to use cookies, but I use this.
I use this code before starting session:
@ini_set('session.use_cookies', true);
@ini_set('session.use_only_cookies', false);
@ini_set('url_rewriter.tags', '');
@ini_set('arg_separator.output', '&');
Can you help me?
bye and thanks in advance
--
Giacomo
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Session don"t store after header("Location: ...")
am 28.03.2006 02:01:19 von Philip Hallstrom
> Hi everybody, I have a problem with mysql session handler and redirect.
>
> My situation:
> - mysql session handler
> - one page is "posted" to another page, that saves a session variable
> and redirect to the first page again.
>
> If I do the redirect the variable is not properly setted, otherwise it's
> all ok.
>
> My PHP version is 4.3.10-16
>
> They said me I have to use cookies, but I use this.
>
> I use this code before starting session:
> @ini_set('session.use_cookies', true);
> @ini_set('session.use_only_cookies', false);
> @ini_set('url_rewriter.tags', '');
> @ini_set('arg_separator.output', '&');
>
> Can you help me?
Don't use Header("Location:..."). Instead spit back very minimal
javascript that does something like:
That way the cookies that get sent back in the header will take affect.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Session don"t store after header("Location: ...")
am 28.03.2006 02:04:52 von Giacomo
Philip Hallstrom ha scritto:
> Don't use Header("Location:..."). Instead spit back very minimal
> javascript that does something like:
>
>
>
> That way the cookies that get sent back in the header will take affect.
I have to use header("Location..."), cause I'm using Mojavi
(http://www.mojavi.org/), an MVC framework.
Can I set cookie before calling header("Location") command?
Giacomo
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Session don"t store after header("Location: ...")
am 28.03.2006 02:27:49 von Philip Hallstrom
> Philip Hallstrom ha scritto:
>> Don't use Header("Location:..."). Instead spit back very minimal
>> javascript that does something like:
>>
>>
>>
>> That way the cookies that get sent back in the header will take affect.
>
> I have to use header("Location..."), cause I'm using Mojavi
> (http://www.mojavi.org/), an MVC framework.
>
> Can I set cookie before calling header("Location") command?
Don't know. All I know is that whenever I've tried to use the Location
header while setting a cookie, it never seems to take.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php