Author Topic: need help - session invalid or expired  (Read 6058 times)

Offline timo

  • Newbie
  • *
  • Posts: 5
need help - session invalid or expired
« on: October 29, 2012, 05:49:51 AM »
Hi all,

i've got a big problem getting roundcube working. I did setup and on installer everything works fine. Now if any user wants to login he gets the message "session invalid or expired".

I run Debian 6 with Apache 2,  php5 and roundcube 8.2 stabile.

I checked the following parameters (so i read in internet):

- set date/timezone of system to Europe/Berlin (real timezone) and put in the php.ini: "date.timezone = Europe/Berlin" like it is written in the system date file
- disabled all plugins in the main.conf
- switched on the session and some other logs to find the error

my session log shows for every login 2 lines like the 2 login tries here:
[29-Oct-2012 10:12:47 +0100]: Session auth check failed for kjvat9fb6792slr9pgjbp75jd2; timeslot = 2012-10-29 10:10:00
[29-Oct-2012 10:12:47 +0100]: Session authentication failed for kjvat9fb6792slr9pgjbp75jd2; invalid auth cookie sent; timeslot = 2012-10-29 10:00:00
[29-Oct-2012 10:12:54 +0100]: Session auth check failed for cfvi2hvtekciectu95prd7msu2; timeslot = 2012-10-29 10:10:00
[29-Oct-2012 10:12:54 +0100]: Session authentication failed for cfvi2hvtekciectu95prd7msu2; invalid auth cookie sent; timeslot = 2012-10-29 10:00:00


the Login creterias are right and working (i can login with them into the IMAP session).

But i didn't understand whats now wrong, to geht this error fixed.

Please help - if you need more Information please contact me.

Thank you!
« Last Edit: October 29, 2012, 06:04:16 AM by timo »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: need help - session invalid or expired
« Reply #1 on: October 29, 2012, 03:02:19 PM »
Try setting $rcmail_config['session_lifetime'] in the <RC root>/config/main.inc.php to 0.

Offline timo

  • Newbie
  • *
  • Posts: 5
Re: need help - session invalid or expired
« Reply #2 on: October 30, 2012, 03:23:15 AM »
hmm it seems to change something but didn't work at all. I've set the session_lifetime to 0, but the same error. I cheched the system time and the Time of the Mailserver and that of my pc are exactly the same. The only thing changed is that the difference between the cockies is now about 2 minutes:

[30-Oct-2012 08:15:04 +0100]: Session auth check failed for maankeanco2g1e9evhkc5uhri4; timeslot = 2012-10-30 08:15:00
[30-Oct-2012 08:15:04 +0100]: Session authentication failed for maankeanco2g1e9evhkc5uhri4; invalid auth cookie sent; timeslot = 2012-10-30 08:13:00
[30-Oct-2012 08:18:05 +0100]: Session auth check failed for tnajuqtlhtki76vf7ulq67o0d6; timeslot = 2012-10-30 08:18:00
[30-Oct-2012 08:18:05 +0100]: Session authentication failed for tnajuqtlhtki76vf7ulq67o0d6; invalid auth cookie sent; timeslot = 2012-10-30 08:16:00

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: need help - session invalid or expired
« Reply #3 on: October 30, 2012, 07:31:24 PM »
Intersecting I'd sugest changing the $rcmail_config['session_lifetime'] but the "invalid auth cookie sent" is whats has me wondering. Have you tried on a different computer / browser?

Offline timo

  • Newbie
  • *
  • Posts: 5
Re: need help - session invalid or expired
« Reply #4 on: October 31, 2012, 10:13:29 AM »
Yes, i tried 4 different machines with firefox and IE....

I have no more ideas how to fix this, or why the error comes out...:(

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: need help - session invalid or expired
« Reply #5 on: October 31, 2012, 06:22:41 PM »
I'd have to look at the RoundCube install to be able to suggest any other changes. I'd need a test mail account and ftp access to the RoundCube folder.

Offline timo

  • Newbie
  • *
  • Posts: 5
Re: need help - session invalid or expired
« Reply #6 on: November 02, 2012, 07:14:45 AM »
Thank you for your Help!

You should have an private message!


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: need help - session invalid or expired
« Reply #7 on: November 03, 2012, 05:31:58 PM »
I've looked at the problem what it turned out to be was $rcmail_config['force_https'] and $rcmail_config['use_https'] where set to true but the server isn't setup for a secure connection. Since the connection wasn't secure it wasn't allowing the login.

Offline timo

  • Newbie
  • *
  • Posts: 5
Re: need help - session invalid or expired
« Reply #8 on: November 03, 2012, 05:48:25 PM »
aaah the world could be so easy.....on this point its clearly true, but i havent searched at that point

thank you very much

[SOLVED]