1 (edited by jroccaforte 2019-06-13 01:39:18)

Topic: RE: PHP Session Expired Please Restart the Calendar

I have download and installed release 4.7.5 of the LuxCal Web Calendar.  The first time I tested an entry, I was able to login as ADMIN and make a calendar entry.  After that I can usually successfully link to and view the activity (not always), but attempting to Login, change the date, or do a search, consistently displays the the "PHP Session Expired Please restart the calendar.  My other PHP programs do not use Session Variables and run OK.

The url is:  http://mustangccofc.com/Mustang_Dev/PonyCal/index.php

Re: RE: PHP Session Expired Please Restart the Calendar

Hi there,

I had a look at your PonyCal and have the impression that your PHP sessions are not working.
Could you send me your email address (via the Contact Us page); I will then send you a small script to test your PHP sessions.

Roel

Re: RE: PHP Session Expired Please Restart the Calendar

I ran a php script to check and Session Support is enabled

Re: RE: PHP Session Expired Please Restart the Calendar

I ran the phpsessiontest script.
1. the counter incremented everytime I presses F5
2.  Here are the server values

The counter increments with F5.

Here are the Session Values:

Session Support    enabled
Registered save handlers    files user wincache
Registered serializer handlers    php_serialize php php_binary wddx
Directive    Local Value    Master Value
session.auto_start    Off    Off
session.cache_expire    180    180
session.cache_limiter    nocache    nocache
session.cookie_domain    no value    no value
session.cookie_httponly    Off    Off
session.cookie_lifetime    0    0
session.cookie_path    /    /
session.cookie_secure    Off    Off
session.entropy_file    no value    no value
session.entropy_length    0    0
session.gc_divisor    1000    1000
session.gc_maxlifetime    1440    1440
session.gc_probability    1    1
session.hash_bits_per_character    5    5
session.hash_function    0    0
session.name    PHPSESSID    PHPSESSID
session.referer_check    no value    no value
session.save_handler    files    files
session.save_path    D:\Temp\php\session\    D:\Temp\php\session\
session.serialize_handler    php    php
session.upload_progress.cleanup    On    On
session.upload_progress.enabled    On    On
session.upload_progress.freq    1%    1%
session.upload_progress.min_freq    1    1
session.upload_progress.name    PHP_SESSION_UPLOAD_PROGRESS    PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix    upload_progress_    upload_progress_
session.use_cookies    On    On
session.use_only_cookies    On    On
session.use_strict_mode    Off    Off
session.use_trans_sid    0    0

Re: RE: PHP Session Expired Please Restart the Calendar

I am still getting the same message

Re: RE: PHP Session Expired Please Restart the Calendar

First, this is my first post here and I'd like to say that I really like the LuxCal calendar application.   Having a calendar application that I can access from multiple devices and while traveling is great.

Now back to this specific topic:

I too am getting this message after the 4.7.5 release.

It wouldn't be that big of a deal if simply clicking the restart button was it.  But it requires a new login each time.   This seems to occur whenever I haven't accessed the calendar for an hour or so.  Not critical, just annoying.

My reason for adding this reply is just to let you know that this issue isn't limited to just the OP.

Re: RE: PHP Session Expired Please Restart the Calendar

A logon should not be required if you checked the "Remember me".

Did you check this option by login?

If the "Remember me" is not checked by login, then a new login is required when the session expires and you did not "reactivate". It is made for security reasons, I think, and is quite normal.

If you DID check the "Remember me" and still need a new login, then something is not functioning as it should - then maybe some more information. What happens when session times out? Do you see any messages?

Re: RE: PHP Session Expired Please Restart the Calendar

Yes, John is right.
And try refreshing the calendar page once (F5) to be sure the cache is refreshed after the upgrade to version 4.7.5.

Groeten,
Roel

Re: RE: PHP Session Expired Please Restart the Calendar

Schwartz wrote:

A logon should not be required if you checked the "Remember me".

Did you check this option by login?


First,  that worked.  I did not have the "Remember me" box checked.  I thought it would just be an autofill for the username prompt.  I didn't remember having it checked before the upgrade and didn't try it.

Second, my apologies.   I will not be so lazy if I ever have an issue again and will do a bit more due diligence to attempt to solve things on my own...

Thank you,
Roger

Re: RE: PHP Session Expired Please Restart the Calendar

Does anyone have a definitive fix for this issue? My partner and I are both in the habit of leaving a tab permanently open/pinned to the calendar, and probably on a daily(?) basis it presents the Session Expired error.

We've been using - and loving - LuxCal for years, and this is a relatively recent occurrence. Reports here probably put it in the ~4.7.5 time period. (We're currently running 4.7.8M (us)).

Or is it tied to a PHP update and the calendar version is a coincidence?

I note that the demo calendar site here does it too: www.luxsoft.eu/luxcal/. Just open a tab to it, then come back tomorrow and engage with it.

Thanks.

- Greig.

Re: RE: PHP Session Expired Please Restart the Calendar

Hello Greig,

I'm afraid there is not much we can do about this. The calendar is using PHP sessions, which (normally) have a lifetime of 20 minutes.
Correct, in the (long) past this didn't happen, because at that time the security measures in the calendar were not so strong. But since quite some time we have introduced strong security measures to keep evil hackers out of the door.
It's a trade-off between the risk of unauthorized access (and damage) to your calendar database and the inconvenience of the need to reload the calendar page after not having used it for more that 20 minutes.

Roel

Re: RE: PHP Session Expired Please Restart the Calendar

Right, gotcha! I didn't realise it was the side-effect of a deliberate tightening of security. You can't argue against that!

Thanks for clarifying.


- Greig.