RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / Keep getting logged off
Posted:  29 Oct 2012 17:30
I keep getting logged off even when I click on the remeber me checkbox, what am I doing wrong or missing?
I have the 'Remember me' cookie expiry days set to 30.

Here is my session info from  phpinfo();

session
Session Support  enabled 
Registered save handlers  files user 
Registered serializer handlers  php php_binary wddx 

Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 1440 1440
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 8640000 8640000
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 8640000 8640000
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 C:/webapps/php/tmp C:/webapps/php/tmp
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_trans_sid 0 0
Posted:  30 Oct 2012 12:12
By "I keep getting logged off" do you mean that you are not able to log on at all (your name doesn't appear at the right upper corner), or do you you mean that you have to log on every time you launch the calendar, even though you checked the "Remember me" check box before and didn't log off the last time?
Posted:  30 Oct 2012 15:46
It says my name in the top right corner I clicked on "Remember me" in about 1 hour it goes back to saying public view and I didn't log off.

Do you think its a php.ini problem or a setting in the luxsoft that I am missing? I am currently running php 5.4.5.

Thank you for all of your help Roel!
Posted:  30 Oct 2012 18:47
Travis, it could be the following:
When you launch the calendar and log on or are logged on automatically (remember me), a PHP session is started. Your user id, and a few other things,  are stored in PHP session variables. The lifetime of PHP sessions is determined by the PHP installation on your server, but is normally 1 hour. Each time you call up a new page (any page) of the calendar, PHP sessions are reactivated and will be active again for the next hour.
However, if you are logged on but don't use the calendar for over an hour, PHP sessions will stop and your user id will be lost which will throw you back to public view.

PHP 5.4.5 is fine.
Roel
Posted:  30 Oct 2012 19:04   Last Edited By: traviss

Quote:


PHP installation on your server, but is normally 1 hour.

Do you know how to make it more than 1 hour? is it in the php.ini file session.gc_maxlifetime or session.cookie_lifetime? That would need to be changed or something else on the server?
Posted:  30 Oct 2012 22:01
I upgraded to php 5.4.8 and setup the php.ini from scratch seems to be working now it was probably just something with the php.ini settings.

Thanks Roel for your help again!
Posted:  30 Oct 2012 22:20
Ok, great!