Re: Session don't store after header("Location: ...")

From: Date: Tue, 28 Mar 2006 00:27:49 +0000
Subject: Re: Session don't store after header("Location: ...")
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-41615@lists.php.net to get a copy of this message
Philip Hallstrom ha scritto:
Don't use Header("Location:..."). Instead spit back very minimal javascript that does something like: <script> document.location.href = '.....'; </script> 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.

« previous php.db (#41615) next »