Sessions and Browsers

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
snap
Posts: 2
Joined: Mon Oct 23, 2006 6:02 am

Sessions and Browsers

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
snap
Posts: 2
Joined: Mon Oct 23, 2006 6:02 am

Post 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
Gyrene251
Posts: 4
Joined: Mon Jan 08, 2007 1:51 am

Odd Coding at top and bottom of guestbook

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Gyrene251
Posts: 4
Joined: Mon Jan 08, 2007 1:51 am

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Gyrene251
Posts: 4
Joined: Mon Jan 08, 2007 1:51 am

Post 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.
Gyrene251
Posts: 4
Joined: Mon Jan 08, 2007 1:51 am

Post by Gyrene251 »

Got it working! Thanks - found my error! Had it pointing to worng file for entires.
Post Reply