I've posted on experts-exchange, and I haven't been able to solve my problem. It's looking like its a configuration problem, but I'm not sure.
Original post:
I recently migrated to a new computer here at work, and I've noticed that some of my projects aren't working any more. I am using the same version of PHP (4.3.1) as well as a copy of my old php.ini. I did upgrade my apache version from 1.3.27 to 1.3.29.
This is what I do: I have a login script which sets a session variable whether you are logged in or not as well as some personal info like name and such. I have a header file that has session_start() as the first line, and this is included on every page. The login page gets submitted to itself where it then queries the database and if the info matches, then it header's them to a new page, if not then it shows the errors and the form again.
Here is my problem: When it header's to the new page it doesn't transfer the session information and thus it thinks im not logged in. What happens is it just creates a new session file on the server. On my old machine this exact same script worked fine. Also I noticed that it is appending the sessionID to all of the links, which I thought didn't happen unless you werent using cookies (it did not do this on my old machine), which I am and want to do.
Here is my current settings although I've tried a whole bunch of settings configurings:
session.save_handler = files
session.save_path = c:\php\sessions
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = ./
session.serialize_handler = php
session.use_trans_sid = 1
Anyone have any ideas? Thanks!
If you are a part of experts exchange, and you can solve my problem, post on there and you'll get the points.
http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20855612.html
Thanks alot guys.