George Pitcher wrote:


> <?php
> header("Location:index.php");
> setcookie("Cookievalue", "abcdefghijklmnopqrstuvwxyz0123456789",
> time()+3600);

A couple of things:

First, I believe Location: must have a space after it, as well as a 
fully qualified URL (ie. http://wherver.com/index.php).

Second, once you've sent the Location header to the browser, I would 
expect it to immediately request the new page, and therefore not get the 
cookie you send afterwards. Why not just set the cookie in index.php?

My $0.02...

-- 
                _______      ___    _  ____  _____
Chris Hobbs   / ____\ \    / / |  | |/ ___\|  __ \
Head Geek    | (___  \ \  / /| |  | | (___ | |  | |
WebMaster     \___ \  \ \/ / | |  | |\___ \| |  | |
PostMaster    ____) |  \  /  | |__| |____) | |__| |
               \____/    \/    \____/ \____/|_____/
                   http://www.silvervalley.k12.ca.us
                       [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to