meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

"Your session has expired" in Windows IIS #2339

Open jberanek opened 5 years ago

jberanek commented 5 years ago

Hi All,

I have just installed MRBS 1.7.1 in my Windows10 Pro PC for my test purpose. It's the 2nd chance of installation for me, and I have no problem while the configuration.

But when I accessed the MRBS site on IIS and tried to create administrative user, MRBS shows "Your session has expired." message and I have no way to use MRBS. On the other hand, I installed Apahce2.4 on the same PC and tried the same, MRBS works with no problem under Apache.

Installed softwares are MySQL community 8.0.13.0, PHP 7.2.11 VC15 x64 Thread Safe, Apache 2.4.37 Win64 from Apahce Lounge and IIS on Japanese Windows10 Pro 1803. PHP is configured to run by php-cgi.exe on FastCGIModule in IIS, and php7apahce2_4.dll in Apache.

Does anyone find the cause of this issue?

Thanks for your support.

Tsutomu Kimura

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1631

jberanek commented 5 years ago

I suspect the problem is that PHP sessions aren't working on your IIS system. The most common causes are (1) that the session save directory specified in your php.ini file doesn't exist or (2) that it does exist but is not writable.

The latest MRBS code in the default branch which you can download here uses database rather than file sessions and so should work. However it's probably worth getting your PHP sessions to work anyway because other applications may need them.

Original comment by: campbell-m

jberanek commented 5 years ago

Now MRBS is working fine on my IIS server.

The session.save_path was undefined in my php.ini, so I changed it to an everyone writable directory. Then I can create administrative account on MRBS and go foward.

Many thanks for your suggestion, Campell.

Tsutomu

Original comment by: *anonymous