Help with my server name..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

Help with my server name..

Post by tores »

hi

I just exported the client-side of my system to another computer. For the new client to be able to access my apache-server i altered the httpd.conf-file, and gave the server a new name => "name2". The old name, "name1", was the name of my computer. Here is where I started encountering problems... Suddenly my session variables disappeared. Then I noticed when using phpinfo(), that HTTP_HOST was name1 whilst SERVER_NAME was name2... Then I tried turning off UseCanonicalName in http.conf and things seemed to go back to normal. But then I noticed that it was only when I first accessed the server that name2 where in use. After the first redirection the netlocation was utterly changed to name1... Anybody got a solution to this. I really want to adress the server with name2 all the way...

Regards tores
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

Sessions?

Post by AnarKy »

Hi,
For the session Vars...
check if there is a directory specified to store them,
and make sure that the directory exists.

A silly mistake that i make sometimes :oops:
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

Post by tores »

The session directory is correct. And that's not really the problem either, I think.
Post Reply