1

Topic: Error: Session expired, please re-login.

==== Required information ====
- iRedMail version: iRedAdmin-Pro    v1.8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): (MySQL)
- Linux/BSD distribution name and version: 12.04.1 LTS, Precise Pangolin
- Related log if you're reporting an issue: N/A
====

Hi All,

I have an issue with the error "Error: Session expired, please re-login."
It seems to be a timeout for the session but I can't find the setting related to this.

I have enabled the follow setting as I have seen it in other posts;
web.config.session_parameters['ignore_change_ip'] = True

This doesn't seem to have helped.
Any ideas if I can extend the timeout for these sessions?

Thanks

----

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

2

Re: Error: Session expired, please re-login.

Does it work if you delete all records in SQL table "iredadmin.sessions"? and clear cache in your web browser?

3

Re: Error: Session expired, please re-login.

Hi,

After deleting the sessions and removing cache it doesn't seem to help.
Any other ideas?

Thanks,

4

Re: Error: Session expired, please re-login.

*) Does it work with other web browser?
*) Which URL did you try to access?

5 (edited by cre8r 2014-12-08 04:15:32)

Re: Error: Session expired, please re-login.

Hi Zhang,

Some more detail on the problem;
>It is not a permanent issue, once you log in, your session is active for a while (maybe 15 minutes) and then the session expires.
>I get the same issues with all browsers.
>I have created new admin users and the same issue occurs.
>After leaving the session for some time, It will happen with any URL.

Just so you are aware, this is not the issue with an old session being kept alive in the database.
I can still login every time , its just my session times out.


Thanks,

6

Re: Error: Session expired, please re-login.

Do you have parameter 'SESSION_TIMEOUT' in file libs/default_settings.py or settings.py under iRedAdmin-Pro?
What's the value of this parameter? If it's too short for you, please increase it.

7

Re: Error: Session expired, please re-login.

That has fixed it thanks.

I had previously edited /iredadmin/libs/default_settings.py:SESSION_TIMEOUT = 14400
However this didn't work, I'm assuming this is an old or default file.

I needed to edit iRedAdmin-Pro-MySQL-1.8.2/libs/default_settings.py:SESSION_TIMEOUT = 14400

Thanks Zhang.