Cookies and servers problems

From: Date: Sat, 04 Aug 2001 18:01:10 +0000
Subject: Cookies and servers problems
Groups: php.general 
Request: Send a blank email to php-general+get-61259@lists.php.net to get a copy of this message
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.

« previous php.general (#61259) next »