View Issue Details

IDProjectCategoryView StatusLast Update
0000648bareos-corewebuipublic2017-06-08 16:38
Reporterhostedpower Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSDebianOS Version8
Product Version15.2.3 
Summary0000648: Timeout way too short and other options that need to be configurable
DescriptionHi,


The timeout it way too short in the web-ui. I would like to keep it open for at least 24 hours and potentially even longer like permanently until logout.

I changed the timeout inside
./module/Application/src/Application/Controller/Plugin/SessionTimeoutPlugin.php

to 100000 but it does not seem to have any effect.

It's really not user friendly to be kicked out after 10 min by default.


Another thing I would like is increaing the number of pages for the pager. It defaults to 10 items. I would like to have it default to 100 or something like this.

The timeout is really an issue for me atm, the second would be nice to have ;)


Best regards and thanks in advance!!
TagsNo tags attached.

Activities

hostedpower

hostedpower

2016-04-21 16:47

reporter   ~0002241

I changed it like this now:

class SessionTimeoutPlugin extends AbstractPlugin
{

   public function timeout()
   {

      return true;



Even that times out after a certain amount of time. Probably there is a timer elsewhere somewhere in the code :)
hostedpower

hostedpower

2016-04-21 21:09

reporter   ~0002245

Changed this in autoload/global.php

   'session' => array(
      'config' => array(
         'class' => 'Zend\Session\Config\SessionConfig',
         'options' => array(
            'name' => 'bareos',
            'use_cookies' => true,
            'cookie_lifetime' => '86400',
            'gc_maxlifetime' => '86400',
            'cache_expire' => 86400,
            'remember_me_seconds' => 86400,
            'use_cookies' => true
         ),
   ),

fingers crossed :)
hostedpower

hostedpower

2016-04-28 18:54

reporter   ~0002251

Great that it's assigned.

Also added this now in the apache config (php settings) since I still get kicked out after a while :)


                #Session timeout
                php_value session.cookie_lifetime 86400
                php_value session.gc_maxlifetime 86400

Will see if it works, so far I don't manage to be inactive for more than 30 - 60 min.
hostedpower

hostedpower

2016-04-28 22:31

reporter   ~0002252

Doesn't work, no idea what kicks me out so fast :|
frank

frank

2016-05-04 17:43

developer   ~0002255

Set the cookie lifetime to zero to reset the lifetime to it's maximum at every click, this was set to a wrong value.

'cookie_lifetime' => '0',

I'm currently preparing a patch for the 15.2 branch as you always get kicked out after one hour regardless of activity.
frank

frank

2016-05-04 17:58

developer   ~0002256

Just to let you know. Such things will be configurable via an ini file in 16.2, I guess.
frank

frank

2016-05-06 18:25

developer   ~0002259

Fix committed to bareos-webui master branch with changesetid 6276.

Related Changesets

bareos-webui: master c4bab8b5

2016-05-04 19:56

frank

Ported: N/A

Details Diff
Fix: Wrong cookie lifetime

Sets the cookie lifetime to zero to reset session lifetime to it's maximum with every click,
this was set to a wrong value. Also session maximum life- and idle-time is now set to
one hour by default. These settings should be configurable via an ini file in future.
In addition, the session idle-timeout controller plugin is probably no longer needed,
which would require some code cleanup.

Fixes 0000648: Timeout way too short and other options that need to be configurable
Affected Issues
0000648
mod - config/autoload/global.php Diff File
mod - module/Application/src/Application/Controller/Plugin/SessionTimeoutPlugin.php Diff File

Issue History

Date Modified Username Field Change
2016-04-21 15:24 hostedpower New Issue
2016-04-21 16:47 hostedpower Note Added: 0002241
2016-04-21 21:09 hostedpower Note Added: 0002245
2016-04-28 17:58 frank Assigned To => frank
2016-04-28 17:58 frank Status new => assigned
2016-04-28 18:54 hostedpower Note Added: 0002251
2016-04-28 22:31 hostedpower Note Added: 0002252
2016-05-04 14:40 frank Status assigned => confirmed
2016-05-04 17:43 frank Note Added: 0002255
2016-05-04 17:58 frank Note Added: 0002256
2016-05-06 18:25 frank Changeset attached => bareos-webui master c4bab8b5
2016-05-06 18:25 frank Note Added: 0002259
2016-05-06 18:25 frank Status confirmed => resolved
2016-05-06 18:25 frank Resolution open => fixed
2017-06-08 16:38 frank Status resolved => closed
2017-06-08 16:38 frank Assigned To frank =>