Re: No Cookies file created on Client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sounds like it could be permissions -- more code would help, but general
comments:

1) make sure you have access to the database
2) make sure the server you're using has write access to wherever that
file is being written
3) you might consider putting setcookies close to the top of the file,
as it needs to be sent with headers and putting it too far down (in my
experience) can cause problems with setting the cookies.
4) is the browser configured to accept cookies from that site?  You can
block some sites and not others.
5) this isn't really a database question :)
-- 
Peter Ellis - pellis@xxxxxxxxxxxxxxx
Web Design and Development Consultant
naturalaxis | http://www.naturalaxis.com/

On Wed, 2004-08-18 at 15:20 -0400, Larry Sandwick wrote:
> After connecting to a database I execute the following code. I never get a
> file created on the computer that is logging in. At the top of the code I do
> have ob_start(); and ob_end_flush(); 
> 
>  
> 
> If I go to other web sites I get there cookies file.
> 
>  
> 
> <code>
> 
>  
> 
> setcookie("logged_in", 1, time()+300, "/");
> 
> setcookie("username", $username, time()+300, "/");
> 
> setcookie("password", $password, time()+300, "/");
> 
> setcookie("line",     $line, time()+300, "/");
> 
> setcookie("type",     $type, time()+300, "/");
> 
> setcookie("account",  $account, time()+300, "/");
> 
> setcookie("dealer",   $dealer, time()+300, "/");
> 
>  
> 
> </code>
> 
>  
> 
> Any comments or suggestions would be appreciated !
> 
>  
> 
> Larry Sandwick
> 
> Sarreid, Ltd.
> 
> Network/System Administrator
> 
> phone: (252) 291-1414 x223
> 
> fax      : (252) 237-1592
> 
>  
> 
> 
>   _____  
> 
> My Inbox is protected by SPAMfighter
> 4020 spam mails have been blocked so far.
> Download free SPAMfighter <http://www.spamfighter.com/>  today! 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux