WillyJimmyDev / simple-quiz

A simple quiz administration written in PHP with a MySQL backend. Uses Bootstrap 3 and Slim PHP micro framework
http://elanman.com/simple-quiz/
Apache License 2.0
164 stars 73 forks source link

Session Issue #31

Open wrick-dev opened 6 years ago

wrick-dev commented 6 years ago

Hi I have installed using the zip archive and followed all steps. However there is some issue in generating the session id. simplequiz error

Can you tell me how to resolve this?

WillyJimmyDev commented 6 years ago

Hi, can you confirm which version of PHP you are using.

wrick-dev commented 6 years ago

Hi I am using version 7.1.7

wrick-dev commented 6 years ago

Do I need to use some other version of PHP ?

WillyJimmyDev commented 6 years ago

Hi. Sorry for not replying sooner. I don't know if this is an issue with the way that PHP 7 handles session_regenerate_id() or if this is a Windows environment problem. You could try using a version of PHP < 7. To be honest, I haven't touched this code in a good while and it isn't something I'm likely to fix. If you come across a solution feel free to send a pull request with the fix and I'll merge it in. Sorry I can't be of more help.

wrick-dev commented 6 years ago

Hey, no issues at all. If I get around to a fix I'll surely do it. Regards

baoc75 commented 6 years ago

It seems to be a PHP bug, not Slim frameworks. References: https://bugs.php.net/bug.php?id=70520 (solved) According to the bug report, upgrade to newer PHP version would fix this? I haven't tested yet.