Page 1 of 1

Sessions and Browsers

Posted: Mon Oct 23, 2006 6:16 am
by snap
Script URL:
Version of script: 1.43
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
sessions, browsers, wrong security code

Write your message below:

While doing a session test on firefox, i get this result:
$_SESSION['test'] is set to: TRUE

but when session testing on internet explorer, i get a different result
$_SESSION['test'] is set to: FALSE

Which basically means that sessions are not working correctly on Explorer and explorer users cannot sign the guestbook (usually they get 'WRONG SECURITY CODE). I have tried changing the session_ save path location but it doesnt work either (currently /tmp). Has anybody had this problem before? If somebody could help that would be appreciated

Posted: Mon Oct 23, 2006 9:18 am
by Klemen
Can you give me URL of your GBook and I will try with both browsers. Could have something to do with your IE security settings or software installed on your PC

Posted: Mon Oct 23, 2006 10:17 pm
by snap
I found the problem. The cause was the path I used to link the guestbook. Im my html page I linked the guestbook in href as 'guestbook/' but after changing it to 'http://myurl/guestbook/gbook.php' now it works. So the problem comes from how i linked my guestbook and for some strange reason IE does like it.

Issue resolved.

P.S. The script is awesome. Does just what i want it to do.

Thanks

Odd Coding at top and bottom of guestbook

Posted: Mon Jan 08, 2007 1:58 am
by Gyrene251
Guestbook ver: 1.43
phpinfo: http://www.vmfa251.org/gbook/phpinfo.php
session_test: http://www.vmfa251.org/gbook/session_test.php

I am getting some odd coding on the top and bottom of my form when trying to sign the book - http://www.vmfa251.org/gbook/ then click sign and you will see what I mean...

Also - I do not have the entry in my settings file $settings['autosubmit'] where I can set it for 1 or 2. It seems to be missing even though I am using 1.43.

the gd_test.php file works but does not work when signing the guestbook.

I think the 2 may be related and or a combination of the missing entry in the set up file and a session problem.

I have tried deleting and reloading the files - still the same problem.

Can some one with firefox check and see if the problem is there in that browser? Please use the link above to get to the guestbook - I have not made it available via link on the main page of my site as of yet.

Thanks.

Posted: Mon Jan 08, 2007 10:01 am
by Klemen
You have been editing gbook.php haven't you?

Unless you understand how PHP and headers work DON'T edit gbook.php. You should upload the original gbook.php back and paste your top and bottom HTML code into header.txt and footer.txt files and not into gbook.php directly!

Posted: Mon Jan 08, 2007 11:46 am
by Gyrene251
As far as I know I did not edit the gbook file - in any case I did as you suggested and still get the garbage at the head of it.

Also in my sessions file I have no setting to set the varibale at 1 or 2 inorder to change the security number.

What I do have is 1 for yes or 0 for no for autosubmit.

Posted: Mon Jan 08, 2007 12:04 pm
by Klemen
Ah, sorry, didn't see the correct error - the problem is with your PHP sessions in general. Even the session test file generates an error.

The problem probably is either your sessions folder "/home/vmfa251.org/tmp" doesn't exist or is not writable. Make sure this folder /home/vmfa251.org/tmp exists and if not chmod it to 777 (rwxrwxrwx)

Let me know if that helps.

Posted: Mon Jan 08, 2007 12:16 pm
by Gyrene251
Ok that did the trick - now I cannot get my renamed entires.txt file to be changed to cmd 666 - for some reason it will not take the command.

Posted: Mon Jan 08, 2007 12:29 pm
by Gyrene251
Got it working! Thanks - found my error! Had it pointing to worng file for entires.