your header line works fine, but where are cookie files written?
i didn't see any cookie file about it in my windows/cookie directory 
after it had been created??

thanks

Richard Baskett wrote:

> Here use this cookie that I wrote, it works in every browser, every os.
> 
> ------------------------------------------------------------------------
> 
> function NextYear () {
>     $today  = gmdate("l, d-M-");
>     $today .= gmdate("Y")+1;
>     $today .= gmdate(" H:i:s")." GMT";
>     return $today;
>   }
> 
> $oneYear = NextYear();
> header("Set-Cookie: CookieName=$CookieNameVar; path=/; expires=$oneYear");
> 
> ------------------------------------------------------------------------
> 
> This has never let me down, enjoy :)
> 
> Rick
> 
> 
>>hi,
>>i have a problem with cookie.
>>
>>true
>>login page -> decide page -> main page
>>|
>> false 
>>|
>>login page
>>
>>username and password are posted by login page to decide page, if it's
>>true, main page will be opened. when decide page is active, cookie is
>>created by line "setcookie("form", $value).
>>but i've never seen the cookie file about it in windows\cookie
>>directory. and sometimes cookie is created and sometimes not..
>>
>>and i didn't use any session, shall i use it for this work?
>>what can i do about these problems?
>>
>>thanks
>>
>>
>>-- 
>>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]
>>
>>
> 


-- 
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