Security Images and Text not working in IE7

Dr. GBooky is here to help you with your guestbook problems ...
galex9
Posts: 3
Joined: Sat Aug 11, 2007 9:07 pm

Security features not working in IE7

Post by galex9 »

Hi,
please help me to get the guestbook working.

I have the same issue as described by bjs1965.
- gd_test.php is OK
- with gbook.php the entries can be entered when autosubmit setting is 0
- when autosubmit is 2 then even if the security number is entered, the script will return a message "Wrong Security Number"
- when autosubmit is 1 then no picture is shown but placeholder with "Security Image" insript is shown

Here are the links to the scripts:
http://golendukhin.gotdns.org/g-b/gbook.php
http://golendukhin.gotdns.org/g-b/session_test.php
http://golendukhin.gotdns.org/g-b/session_test2.php

Please let me know how could I fix this problem. I have Apache 2.0 installed on Windows machine, with PHP 4.

Many thanks.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Your PHP sessions aren't working. Make sure that the folder set as session.save_path in your php.ini file exists and is writable by the script.
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
galex9
Posts: 3
Joined: Sat Aug 11, 2007 9:07 pm

Post by galex9 »

Thanks for a prompt response, Klemen.

The folder is in the php.ini. How should I make sure it is writeable by the script?

Here is the part with session settings, could you please check if something else to be changed:
===========================
; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 1

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =
===========================
Last edited by galex9 on Mon Aug 13, 2007 4:18 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Sessions work now, but the problem can be session.auto_start, set that to 0, restart the server, close ALL browser windows and try again.
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
galex9
Posts: 3
Joined: Sat Aug 11, 2007 9:07 pm

Post by galex9 »

You are the man, Klemen!
The sign-gb page works now, including the security image.

Thanks for a prompt and substantial help.
Yiddlei
Posts: 1
Joined: Sun Aug 26, 2007 3:27 pm

Post by Yiddlei »

Just a heads up for you all. I was having trouble with the security images on my guestbook.
The trouble was that in firefox all was well, but IE7 wouldnt show the image.
I downloaded, installed and ran the php info and session test scripts and all was well.
After much head scratching, I sussed out that FRAMES cause the ie7 version to bug out ( no session started) but firefox wasnt so bothered by them.
Hope this helps anyone else with the same problem.
Cheers all, great script, bye bye now, Yiddlei. :mrgreen:
Post Reply