Topic: PHP sessions not working ???

Dear admin,

I have tried to install your script.
But when "testing" I get the message PHP sessions not working ...

So I have run a small test-scrip that gives me the following message: Session support enabled!

So I am a bit confused here. Would appreciate any tips to solve this issue.

Thanks in advance!
Regards, Piotr

Re: PHP sessions not working ???

Hello Piotr,

There are basically two possible reasons for PHP sessions not to be working:

1) sessions are not enabled in the PHP installation, which is very unlikely because many PHP web applications use sessions.
You can check if sessions are enabled by uploading a script containing . . .

phpinfo();

. . . to the calendar root on your server and start it with your browser. It will show you the PHP installation details. Now scroll down to (or search for) SESSION and check the first line.

2) the session save path (session.save_path) is incorrect. In more than 99% of the cases this is the problem.
In the same PHP installation details as above, some lines down, you will find the variable session.save_path (see screenshot). In my case it is "/tmp". I don't know what it should be in your case, maybe "/tmp", maybe not. You can change the value in the php.ini file (if you have access to that file).

Hopefully this solves your problem. If not, let me know and I will try to help.

Roel

Re: PHP sessions not working ???

Hi Roel,

Thanks for your answer!
I have checked the "session" paragraph of the php.ini file.
This paragraph also includes the session.save_path info, which in my case is the following directory: /var/lib/php/sessions
Unfortunately I do not have direct access to this php.ini file nor to the abovementioned directory.

So I probably will have to ask my hosting company to execute some changes for me.
Could you tell me what they should change in order to get the LuxCal Web Calendar script installed?

Piotr

Re: PHP sessions not working ???

Hi Piotr,

I assume PHP sessions are enabled. So the problem is almost certainly the session.save_path (wrong directory or permissions not correct).
I think you should just tell your provider that your PHP sessions are not working and ask them to solve this problem. And maybe give them a hint that it is probably due to a wrong session.save_path.

Often one can select a PHP version in the control panel of your web host. If this is possible you could try to switch to a different PHP version, for which the session.save_path has been set correctly. (each PHP version has it's own session.save_path, so it is quite possible that an other PHP version works fine).
The LuxCal calendar runs with PHP V5.4 or higher.

Roel

Re: PHP sessions not working ???

Hi Roel,

It's fascinating me wink

I have tried to get the script installed via WAMP on my laptop.
- I have cheked: sessins are enabled ...
- session.save_path in php.ini is: C/wamp/tmp.
- I have tried with several PHP-versions.

Still installation is interrupted and installation screen gives me the same error ...

Piotr

Re: PHP sessions not working ???

Hi Piotr,

Yes, your session problems are fascinating wink

Send me your email address (via the Contact Us page) and then I will send you a simple PHP script to test the PHP sessions.

No sessions, no calendar sad

Roel