• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

IE10 PHP session problem

xoggoth

More fingers than teeth
Joined
Jul 8, 2005
Messages
17,144
Likes received
4,956
Thanks received
1,186
Location
xoggoth towers
I have been using Simon Jarvis's free captcha software for years and have just discovered it is not working in IE10. Thanks AGAIN Microsoft!

The details of the PHP script are here but in a nutshell:

1 $code=random collection of letters
2 show $code as messy image
3 $_SESSION['security_code'] = $code

There is a valid value in $code and the messy image is fine but $_SESSION['security_code'] is null in my mail form using IE10. It's what I expect in other browsers and they work fine.

Anyone else had PHP session problems in IE10? Cheers.
 
I have been using Simon Jarvis's free captcha software for years and have just discovered it is not working in IE10. Thanks AGAIN Microsoft!

The details of the PHP script are here but in a nutshell:

1 $code=random collection of letters
2 show $code as messy image
3 $_SESSION['security_code'] = $code

There is a valid value in $code and the messy image is fine but $_SESSION['security_code'] is null in my mail form using IE10. It's what I expect in other browsers and they work fine.

Anyone else had PHP session problems in IE10? Cheers.


You are confusing server side code with client side.

That code you have pasted in PHP executes on the server. Nothing to do with browsers. You are pretty much looking at a red herring here. The problem is probably with the markup and what is being posted by the form.
 
Ta for comment. Must admit I'm not an expert on PHP or quite how it works, but either by server side variable or client side cookie, it should set a value that lasts till the user closes the browser. IE10 ain't doing it any more.
 
Last edited: 19:22
It'll use a cookie to maintain the session, so it's probably that that's getting lost. There was some controversy about Microsoft blocking tracking cookies by default in IE10 IIRC, and I know IE10 is picky about cross domain issues.
 
Cheers. I wasn't really clear if sessions used a server side variable or a temporary client side cookie but the latter certainly seems the only explanation for the fault. There are some similar problems on the net but I'm not doing anything odd with different domains or using iframes as they are. No solutions that I have found.

For the moment I have got it working again using MySQL but seems a bit of a sledgehammer to crack a nut. Only other things I can think of are a) Try an explicit setcookie, nowt to lose as it's only two lines b) Use a PHP generated page with all the stuff in it and set a hidden element with same value.

PS Last sounded too much hastle but someone has done something similar for me:

http://www.mythos-rini.com/blog/archives/732
 
Last edited: 19:55

Advertisers

Back
Top