Session disconnection
Moderator: crythias
Session disconnection
Hello,
I'd like to know more about sessions.
It appears that every morning when I come back to work my session is destroyed and I have to reconnect to my OTRS.
I want to avoid that.
So I have modified the following parameter (to 16 hours) in Config.pm:
$Self->{SessionMaxIdleTime} = 16 * 60 * 60;
That must be enough inactive time from evening when I leave my office until next morning... but still I have to reconnect!
I tried this parameter too:
$Self->{SessionDeleteIfTimeToOld} = 0;
I thought it would prevent the session to ever be deleted... but still I have to reconnect!
You have to take into account that I also enabled this parameter:
$Self->{SessionUseCookieAfterBrowserClose} = 1;
Which works fine if you close the browser and reopen it straight away. But not the next morning.
Can anybody explain please?
Additional question:
If I modify these parameters in SysConfig Core::Session instead of Config.pm ... my previous values are still in Config.pm!
So SysConfig and Config.pm are in contradiction!!!!???
Which one is right?
Will the values of Config.pm (i.e. my previous values) come back into SysConfig at the next occasion (reconnection?)?
Regards,
HervE
I'd like to know more about sessions.
It appears that every morning when I come back to work my session is destroyed and I have to reconnect to my OTRS.
I want to avoid that.
So I have modified the following parameter (to 16 hours) in Config.pm:
$Self->{SessionMaxIdleTime} = 16 * 60 * 60;
That must be enough inactive time from evening when I leave my office until next morning... but still I have to reconnect!
I tried this parameter too:
$Self->{SessionDeleteIfTimeToOld} = 0;
I thought it would prevent the session to ever be deleted... but still I have to reconnect!
You have to take into account that I also enabled this parameter:
$Self->{SessionUseCookieAfterBrowserClose} = 1;
Which works fine if you close the browser and reopen it straight away. But not the next morning.
Can anybody explain please?
Additional question:
If I modify these parameters in SysConfig Core::Session instead of Config.pm ... my previous values are still in Config.pm!
So SysConfig and Config.pm are in contradiction!!!!???
Which one is right?
Will the values of Config.pm (i.e. my previous values) come back into SysConfig at the next occasion (reconnection?)?
Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Re: Session disconnection
Hello,
Any idea on this anyone?
About my "addtional question", a little more practise of OTRS made me understand values of SysConfig override values of Config.pm.
...Yet, I still have to reconnect every morning.
Can it be avoided?
Regards,
HervE
Any idea on this anyone?
About my "addtional question", a little more practise of OTRS made me understand values of SysConfig override values of Config.pm.
...Yet, I still have to reconnect every morning.
Can it be avoided?
Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Re: Session disconnection
Config.pm overrides Sysconfig values!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Session disconnection
Sorry, I was thinking of other files - Ticket.xml for example - which are overriden by SysConfig.
Thank you for the precision.
HervE
Thank you for the precision.
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Re: Session disconnection
Ticket.xml is the default value for Sysconfig. So never change it!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Session disconnection
I had to, because I needed to ad a new dashlet list in the dashboard. (See viewtopic.php?f=62&t=8460&p=34554#p34554)
Don't worry, I know what I am doing
HervE
Don't worry, I know what I am doing

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Re: Session disconnection
You can add an additional xml file in the Files directory (like herve.xml) so your changes won't be overwritten on updates...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Session disconnection
Edit Config Settings in Framework -> Core::Session
SessionMaxTime
SessionMaxIdleTime
SessionDeleteIfTimeToOld
I'd suggest using SysConfig rather than Config.pm
SessionMaxTime
SessionMaxIdleTime
SessionDeleteIfTimeToOld
I'd suggest using SysConfig rather than Config.pm
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Re: Session disconnection
I set them to the following values:crythias wrote:Edit Config Settings in Framework -> Core::Session
SessionMaxTime
SessionMaxIdleTime
SessionDeleteIfTimeToOld
SessionMaxTime = 86400 (i.e. 24 hours)
SessionMaxIdleTime = 86400
SessionDeleteIfTimeToOld = No
What is the use of this last parameter, SessionDeleteIfTimeToOld? I thought it would prevent the session to be deleted, but it appears that I still have to login again every 24 hours. So, what does it mean? Is it useless?
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30