Session Expiration ilmo December 31, 2018 19:40 3 comments Is there possible make session expiration more longer than 24 hours? Example 72 hours Comments 3 comments Sort by Date Votes Chris Muench December 31, 2018 19:42 At this time there is not a way without modifying code. (Which is actually pretty simple). application/controllers/Config.php find $data['phppos_session_expirations'] = array('0' => lang('config_on_browser_close')); for($k=10;$k<=60;$k+=5) { $expire = $k*60; $data['phppos_session_expirations']["$expire"] = $k.' '.lang('common_minutes'); } for($k=1;$k<=24;$k++) { $expire = $k*60*60; $data['phppos_session_expirations']["$expire"] = $k.' '.lang('config_hours'); }Replace$data['phppos_session_expirations'] = array('0' => lang('config_on_browser_close')); for($k=10;$k<=60;$k+=5) { $expire = $k*60; $data['phppos_session_expirations']["$expire"] = $k.' '.lang('common_minutes'); } for($k=1;$k<=72;$k++) { $expire = $k*60*60; $data['phppos_session_expirations']["$expire"] = $k.' '.lang('config_hours'); } 0 ilmo December 31, 2018 19:56 Thank you ! 0 Chris Muench December 31, 2018 19:58 We just did an update to support up to 7 days in the main release so you don't have to always remember to patch each time. 0 Please sign in to leave a comment.
Comments
3 comments
At this time there is not a way without modifying code. (Which is actually pretty simple).
application/controllers/Config.php
find
$data['phppos_session_expirations'] = array('0' => lang('config_on_browser_close'));
for($k=10;$k<=60;$k+=5)
{
$expire = $k*60;
$data['phppos_session_expirations']["$expire"] = $k.' '.lang('common_minutes');
}
for($k=1;$k<=24;$k++)
{
$expire = $k*60*60;
$data['phppos_session_expirations']["$expire"] = $k.' '.lang('config_hours');
}
Replace
$data['phppos_session_expirations'] = array('0' => lang('config_on_browser_close'));
for($k=10;$k<=60;$k+=5)
{
$expire = $k*60;
$data['phppos_session_expirations']["$expire"] = $k.' '.lang('common_minutes');
}
for($k=1;$k<=72;$k++)
{
$expire = $k*60*60;
$data['phppos_session_expirations']["$expire"] = $k.' '.lang('config_hours');
}
Thank you !
We just did an update to support up to 7 days in the main release so you don't have to always remember to patch each time.
Please sign in to leave a comment.