Philip Hallstrom ha scritto:
Don't use Header("Location:..."). Instead spit back very minimal javascript that does something like:

document.location.href = '.....';

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 (, 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 (
To unsubscribe, visit:

Reply via email to