Page 1 of 1

Securit code works on local network but not elsewhere

Posted: Thu Nov 15, 2007 8:45 am
by shoppie
Script URL: www.webserver.robwinkels.nl/gbook/gbook.php
Version of script: V1.5
Hosting company: own Apache Server
URL of phpinfo.php: http://www.webserver.robwinkels.nl/gboo ... hpinfo.php
URL of session_test.php: http://www.webserver.robwinkels.nl/gboo ... n_test.php
What terms did you try when SEARCHING for a solution:
Searched for all post concerning the GD lib and session posts.

Write your message below:
Dear all,

I searched the net for many guestbooks and tried out probably all free onces. It was all crap untill Gbook showed up! I really like the easyness how to make Gbook your guestbook in your own style, so many thanks Klemen!

OK, now the problem (of course...):
I run my own Win2000 server with Apache and PHP5. The guestbook runs nicely and adding new posts are no problem. The GD works and als sessions work. But when adding a new post from another network I get two problems:
1. The graphical security number doesn't show up;
2. I loose the session.

To resolve the problem I searched for these problems and made some changes in the php.ini file according advises of other posters here on the forum.
So what's going on? I'm getting these big question marks flying around my head I'm just in the state of giving up.....
So please check my phpinfo() and session_test.php.

Btw, for this test, I only made some changes in the settings.php, so the gbook.php is original V1.5.

Thanks for any help,

Rob

Posted: Thu Nov 15, 2007 9:22 am
by Klemen
Hi,

Your GD works fine from outside (http://www.webserver.robwinkels.nl/gbook/gd_test.php), the sessions are the ones causing problems. Most likely PHP scripts don't have permission to write to your temporary folder:
C:/Temp

Make sure C:/Temp is writable by the internet guest account (it probably works locally because you are logged in as an administrator?).

Posted: Thu Nov 15, 2007 9:33 am
by shoppie
Hi Klemen,

Wow, that was a very quick respond!

In the meantime, I changed the read/write settings on the C:/Temp folder.
Can you or anyone else please check if it's working now (at the moment I don't have access to a PC on a different network...)

Thnx,

Rob

Posted: Thu Nov 15, 2007 9:42 am
by Klemen
Hi,

It is working, if I open
http://80.126.125.14/gbook/gbook.php?a=sign
directly, but it's not working, if I open
http://www.webserver.robwinkels.nl/gbook/gbook.php
and click "Sign"

You must have some redirection from www.webserver.robwinkels.nl to 80.126.125.14 and that is making problems (browsers don't allow session cookies transferred between different websites (IPs) for security reasons).

You should either use 80.126.125.14 or install GBook on www.webserver.robwinkels.nl which is 216.98.141.250

Posted: Thu Nov 15, 2007 9:50 am
by shoppie
Hi again Klemen,

OK, I understand the problem now.
I'm gonna make some changes from my website to call the guestbook. I'll link it directly to the IP-address instead of via the name server.
If it doesn't work I might post a question on the forum, but if it works I''ll be the happy bloke :-)

Thanks for the info.

Rob

Posted: Thu Nov 15, 2007 11:23 am
by shoppie
Hi Klemen,

About the sessions: I think I have a problem because the host only keeps my domain name and not the web site....
So, this whole session thing is going to be a problem for me I think.

The guestbook should be called from www.robwinkels.nl and that's another domain compared to where the guestbook pages are located.....

Is there something in the pbook.php code upon sessions that can be comment out or so?

Rob

Posted: Thu Nov 15, 2007 12:49 pm
by Klemen
Won't work without sessions I'm afraid.