1 (edited by raz 2017-06-08 20:37:56)

Topic: sogo sessions

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: ubuntu 16
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello everyone.

im using sogo webmail and i have noticed that client sessions are never being closed
i know that this cron job "*   *   *   *   *   /usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify" clean open sessions from "sogo_sessions_folder" table. but after cleaning the session remains open.
do you have any clue?

Thank you
Raz

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: sogo sessions

Which "session" are we talking about?
The command will try to remove session which was inactive for 30 minutes.

3

Re: sogo sessions

ZhangHuangbin wrote:

Which "session" are we talking about?
The command will try to remove session which was inactive for 30 minutes.

Hey Zhang
Thank you for answering.
and yes, i mean sessions which are inactive for 30 min.
i fixed the previous problem it was a broken file.

now im handling a new problem with the sessions.
the sessions are not getting removed because the browsers refresh themselves automatically every 5 min.
so no session gets remove.
any solution for that?

Thank you
Raz

4

Re: sogo sessions

If user is still accessing the mailbox (every 5 minutes), why do you need to remove these sessions?

5

Re: sogo sessions

ZhangHuangbin wrote:

If user is still accessing the mailbox (every 5 minutes), why do you need to remove these sessions?


Hey Zhang,
The user is not accessing.the browser is open with sogo but minimized and no changes done.
and still every 5 min its refreshes the page.

the remove session will work only if the browser will be off

do you understand what is mean?

Thank you

Raz

6

Re: sogo sessions

Maybe you can try this command:

/usr/sbin/sogo-tool expire-sessions 4

Remove sessions which are inactive in last 4 minutes.

7

Re: sogo sessions

ZhangHuangbin wrote:

Maybe you can try this command:

/usr/sbin/sogo-tool expire-sessions 4

Remove sessions which are inactive in last 4 minutes.

Yeah its possible.
but the problem is that its too short time.
\=

do i have more options?

Thanks
Raz

8

Re: sogo sessions

I have no idea.

9

Re: sogo sessions

iv'e found the problem.
in the sogo.conf file we have this line:
SOGoRefreshViewCheck = every_5_minutes;

so the crontab wont drop old connection because the browser will refresh every 5 min.
(only if you quit the browser)

Raz