Re: Cookies and servers problems

From: Date: Sat, 04 Aug 2001 22:53:28 +0000
Subject: Re: Cookies and servers problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61276@lists.php.net to get a copy of this message
I couldnt get php's cookies working at all, so finally I decided to send a header cookies which worked perfectly. So try this: header("Set-Cookie: Login[Email]=$Email; path=/; expires=$oneYear"); I made a function for $oneYear, but you can replace it with whatever date you would like :) I hope this answers your question. Rick > Hi All, > > I used to run a customized version of Php-Nuke (www.phpnuke.org) on a > server that had PHP 4.05, Linux and Apache. Used to run fine. > > Now I am trying to run the same, just downloaded and uploaded to the new > server, but it is a Windows, IIS, with PHP 4.0.3pl1. The phpinfo(); of the > new server can be seen here: > > http://www.arubaito.com.br/info.php > > Okay, now with the problem. I customized Nuke to allow users to be > attached to 'companies', and the articles be displayed only for certain > companies. So, only an user from a specific company can have access to the > article. > > But now, it is not working. The sql query is feed by a "WHERE > company='$user_company'" part, where the $user_company comes from another > sql query, based on the login name from a cookie. > > If I change $user_company to 1, it grabs the articles. > > So, the problem is with the cookies. The new server is not sending it > right. I tested on 2 or 3 machines, all with different Operating Systems and > browsers (win98, win2k, IE, Netscape, Opera). > > Anyone have an idea if the new server I am on and its configuration has > some kind of trouble to manage cookies properly? > > Thanks in advance, > > Julio Nobrega. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#61276) next »