Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Roundcube
  3. How to stop Roundcube session ending when I close my laptop lid?

How to stop Roundcube session ending when I close my laptop lid?

Scheduled Pinned Locked Moved Solved Roundcube
39 Posts 8 Posters 5.4k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by jdaviescoates
      #1

      When I'm not working I tend to just close my laptop lid.

      When I open it again I have to login to Roundcube again. This is a minor annoyance I want to avoid (Gmail doesn't do this).

      On my first quick search it look like perhaps I need to edit or comment out $rcmail_config['session_lifetime'] = 10;

      (e.g. https://billing.hostnox.gr/knowledgebase/55/------Session-invalid-or-expired--Roundcube-or-WHM.html?language=english )

      But no such line is included in /app/data/customconfig.php

      Any ideas?

      I guess I could experiment with higher values than 10, but I basically don't ever want my session to end unless I manually log out.

      Edit: looks like lots of people have this same issue, see also https://issuekiller.com/issues/roundcube/roundcubemail/15073963

      Edit 2: this would seem to suggest it could be related to a MySQL issue:
      https://forums.cpanel.net/threads/upgraded-to-11-30-0-now-roundcube-saying-session-expired-or-is-invalid.212331/post-875951

      Edit 3: sounds like perhaps this PR would fix it https://github.com/roundcube/roundcubemail/pull/7709

      Edit 4: see also https://github.com/emtiu/roundcube-cookielifetime

      Sigh. The state of open source webmail is so abysmal 😢 (I wonder if SnappyMail have fixed this annoying issue...)

      I use Cloudron with Gandi & Hetzner

      necrevistonnezrN timconsidineT A 4 Replies Last reply
      0
      • jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #29

        @necrevistonnezr said in How to stop Roundcube session ending when I close my laptop lid?:

        @jdaviescoates Sorry, but Firefox is not what it used to be (or the web has changed) - I gave up on Firefox due to so many sites not loading, not being compatible or other issues. Might be their strict default privacy and container settings.

        That's it! (I think)

        I just clicked on the little shield on the far left of the address bar and toggled Enhanced Tracking Protection is ON for this site to Enhance Tracking Protection is OFF for this site

        Screenshot from 2022-08-09 23-02-48.png

        Then I closed down Firefox and all my other apps and restarted my machine. Open up Firefox and I'm still logged in. Hopefully it'll now stay that way!

        Thanks!

        I use Cloudron with Gandi & Hetzner

        jdaviescoatesJ 1 Reply Last reply
        5
        • jdaviescoatesJ jdaviescoates

          When I'm not working I tend to just close my laptop lid.

          When I open it again I have to login to Roundcube again. This is a minor annoyance I want to avoid (Gmail doesn't do this).

          On my first quick search it look like perhaps I need to edit or comment out $rcmail_config['session_lifetime'] = 10;

          (e.g. https://billing.hostnox.gr/knowledgebase/55/------Session-invalid-or-expired--Roundcube-or-WHM.html?language=english )

          But no such line is included in /app/data/customconfig.php

          Any ideas?

          I guess I could experiment with higher values than 10, but I basically don't ever want my session to end unless I manually log out.

          Edit: looks like lots of people have this same issue, see also https://issuekiller.com/issues/roundcube/roundcubemail/15073963

          Edit 2: this would seem to suggest it could be related to a MySQL issue:
          https://forums.cpanel.net/threads/upgraded-to-11-30-0-now-roundcube-saying-session-expired-or-is-invalid.212331/post-875951

          Edit 3: sounds like perhaps this PR would fix it https://github.com/roundcube/roundcubemail/pull/7709

          Edit 4: see also https://github.com/emtiu/roundcube-cookielifetime

          Sigh. The state of open source webmail is so abysmal 😢 (I wonder if SnappyMail have fixed this annoying issue...)

          necrevistonnezrN Offline
          necrevistonnezrN Offline
          necrevistonnezr
          wrote on last edited by necrevistonnezr
          #2

          @jdaviescoates
          According to this (https://github.com/roundcube/roundcubemail/issues/5961) I set

          $rcmail_config['session lifetime'] = 10080;
          

          in app/data/customconfig.php and I’m good for a month or so….

          In context:
          (6DD502BF-D052-49FF-9BA9-5080F3F9C588.jpeg

          jdaviescoatesJ humptydumptyH 2 Replies Last reply
          1
          • necrevistonnezrN necrevistonnezr

            @jdaviescoates
            According to this (https://github.com/roundcube/roundcubemail/issues/5961) I set

            $rcmail_config['session lifetime'] = 10080;
            

            in app/data/customconfig.php and I’m good for a month or so….

            In context:
            (6DD502BF-D052-49FF-9BA9-5080F3F9C588.jpeg

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #3

            @necrevistonnezr thanks, I'll give that a try in the first instance and see how I get on...

            I use Cloudron with Gandi & Hetzner

            jdaviescoatesJ 1 Reply Last reply
            0
            • jdaviescoatesJ jdaviescoates

              When I'm not working I tend to just close my laptop lid.

              When I open it again I have to login to Roundcube again. This is a minor annoyance I want to avoid (Gmail doesn't do this).

              On my first quick search it look like perhaps I need to edit or comment out $rcmail_config['session_lifetime'] = 10;

              (e.g. https://billing.hostnox.gr/knowledgebase/55/------Session-invalid-or-expired--Roundcube-or-WHM.html?language=english )

              But no such line is included in /app/data/customconfig.php

              Any ideas?

              I guess I could experiment with higher values than 10, but I basically don't ever want my session to end unless I manually log out.

              Edit: looks like lots of people have this same issue, see also https://issuekiller.com/issues/roundcube/roundcubemail/15073963

              Edit 2: this would seem to suggest it could be related to a MySQL issue:
              https://forums.cpanel.net/threads/upgraded-to-11-30-0-now-roundcube-saying-session-expired-or-is-invalid.212331/post-875951

              Edit 3: sounds like perhaps this PR would fix it https://github.com/roundcube/roundcubemail/pull/7709

              Edit 4: see also https://github.com/emtiu/roundcube-cookielifetime

              Sigh. The state of open source webmail is so abysmal 😢 (I wonder if SnappyMail have fixed this annoying issue...)

              necrevistonnezrN Offline
              necrevistonnezrN Offline
              necrevistonnezr
              wrote on last edited by
              #4

              @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

              Sigh. The state of open source webmail is so abysmal 😢 (I wonder if SnappyMail have fixed this annoying issue...)

              I agree. BTW Snappymail is a fork of Rainloop, not of Roundcube.

              jdaviescoatesJ 1 Reply Last reply
              3
              • necrevistonnezrN necrevistonnezr

                @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                Sigh. The state of open source webmail is so abysmal 😢 (I wonder if SnappyMail have fixed this annoying issue...)

                I agree. BTW Snappymail is a fork of Rainloop, not of Roundcube.

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #5

                @necrevistonnezr said in How to stop Roundcube session ending when I close my laptop lid?:

                BTW Snappymail is a fork of Rainloop, not of Roundcube.

                Oh yes, thanks for the reminder

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @necrevistonnezr thanks, I'll give that a try in the first instance and see how I get on...

                  jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by jdaviescoates
                  #6

                  @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                  @necrevistonnezr thanks, I'll give that a try in the first instance and see how I get on...

                  So, I added:

                  $rcmail_config['session lifetime‘] = 10080;
                  

                  To app/data/customconfig.php

                  But it hasn't made any difference at all.

                  When I opened my laptop this morning I had to log back in to Roundcube, again.

                  Now I'm wondering if I restarted the app (or whether I would've needed to)

                  I use Cloudron with Gandi & Hetzner

                  fbartelsF 1 Reply Last reply
                  0
                  • jdaviescoatesJ jdaviescoates

                    @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                    @necrevistonnezr thanks, I'll give that a try in the first instance and see how I get on...

                    So, I added:

                    $rcmail_config['session lifetime‘] = 10080;
                    

                    To app/data/customconfig.php

                    But it hasn't made any difference at all.

                    When I opened my laptop this morning I had to log back in to Roundcube, again.

                    Now I'm wondering if I restarted the app (or whether I would've needed to)

                    fbartelsF Offline
                    fbartelsF Offline
                    fbartels
                    App Dev
                    wrote on last edited by
                    #7

                    @jdaviescoates since this is just php code a restart is not needed. What is needed however is you reloading the application in your browser to make the change reach your session.

                    @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                    Gmail doesn't do this

                    Gmail is also not a php application. The reason sessions are handled better there is because their user sessions are based on openid connect, which means you get a refresh token with every login, that can (as long as the refresh token is valid) be used to get a session token without the need to perform another login.

                    jdaviescoatesJ 1 Reply Last reply
                    1
                    • fbartelsF fbartels

                      @jdaviescoates since this is just php code a restart is not needed. What is needed however is you reloading the application in your browser to make the change reach your session.

                      @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                      Gmail doesn't do this

                      Gmail is also not a php application. The reason sessions are handled better there is because their user sessions are based on openid connect, which means you get a refresh token with every login, that can (as long as the refresh token is valid) be used to get a session token without the need to perform another login.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #8

                      @fbartels said in How to stop Roundcube session ending when I close my laptop lid?:

                      What is needed however is you reloading the application in your browser to make the change reach your session.

                      Thanks. I guess it refreshed when I logged in again this morning. Let's see what happens tomorrow morning...

                      I use Cloudron with Gandi & Hetzner

                      jdaviescoatesJ 1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates

                        @fbartels said in How to stop Roundcube session ending when I close my laptop lid?:

                        What is needed however is you reloading the application in your browser to make the change reach your session.

                        Thanks. I guess it refreshed when I logged in again this morning. Let's see what happens tomorrow morning...

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #9

                        @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                        Let's see what happens tomorrow morning...

                        No change.

                        Screenshot from 2022-04-14 10-03-45.png

                        I use Cloudron with Gandi & Hetzner

                        necrevistonnezrN 1 Reply Last reply
                        0
                        • jdaviescoatesJ jdaviescoates

                          @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                          Let's see what happens tomorrow morning...

                          No change.

                          Screenshot from 2022-04-14 10-03-45.png

                          necrevistonnezrN Offline
                          necrevistonnezrN Offline
                          necrevistonnezr
                          wrote on last edited by
                          #10

                          @jdaviescoates is uBlock Origin blocking any cookies?

                          jdaviescoatesJ 1 Reply Last reply
                          1
                          • necrevistonnezrN necrevistonnezr

                            @jdaviescoates is uBlock Origin blocking any cookies?

                            jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by
                            #11

                            @necrevistonnezr hah, thanks!

                            That's quite likely it I guess.

                            Thought I'd turned uBlock off for all my own domain but I've moved this Roundcube install around a bit so I guess not!

                            Have turned it off now, hopefully that'll help...

                            I use Cloudron with Gandi & Hetzner

                            1 Reply Last reply
                            0
                            • necrevistonnezrN necrevistonnezr

                              @jdaviescoates
                              According to this (https://github.com/roundcube/roundcubemail/issues/5961) I set

                              $rcmail_config['session lifetime'] = 10080;
                              

                              in app/data/customconfig.php and I’m good for a month or so….

                              In context:
                              (6DD502BF-D052-49FF-9BA9-5080F3F9C588.jpeg

                              humptydumptyH Offline
                              humptydumptyH Offline
                              humptydumpty
                              wrote on last edited by
                              #12

                              @necrevistonnezr said in How to stop Roundcube session ending when I close my laptop lid?:

                              $rcmail_config['session lifetime‘] = 10080;

                              If I'm not mistaken, there's a typo in that code. After LIFETIME, the ending ' seems to be something else.

                              jdaviescoatesJ necrevistonnezrN 2 Replies Last reply
                              0
                              • humptydumptyH humptydumpty

                                @necrevistonnezr said in How to stop Roundcube session ending when I close my laptop lid?:

                                $rcmail_config['session lifetime‘] = 10080;

                                If I'm not mistaken, there's a typo in that code. After LIFETIME, the ending ' seems to be something else.

                                jdaviescoatesJ Offline
                                jdaviescoatesJ Offline
                                jdaviescoates
                                wrote on last edited by
                                #13

                                @humptydumpty yeah, when I pasted it in to the terminal it was clear (because of the code highlight) it wasn't correct so I replaced it with a ' - but thanks for pointing that out in case that was the issue 🙂

                                I use Cloudron with Gandi & Hetzner

                                1 Reply Last reply
                                1
                                • humptydumptyH humptydumpty

                                  @necrevistonnezr said in How to stop Roundcube session ending when I close my laptop lid?:

                                  $rcmail_config['session lifetime‘] = 10080;

                                  If I'm not mistaken, there's a typo in that code. After LIFETIME, the ending ' seems to be something else.

                                  necrevistonnezrN Offline
                                  necrevistonnezrN Offline
                                  necrevistonnezr
                                  wrote on last edited by
                                  #14

                                  @humptydumpty said in How to stop Roundcube session ending when I close my laptop lid?:

                                  @necrevistonnezr said in How to stop Roundcube session ending when I close my laptop lid?:

                                  $rcmail_config['session lifetime‘] = 10080;

                                  If I'm not mistaken, there's a typo in that code. After LIFETIME, the ending ' seems to be something else.

                                  You‘re right! I had fiddled with that post on the iPhone - quite a hassle. I corrected it now in the post above for future reference.

                                  1 Reply Last reply
                                  1
                                  • jdaviescoatesJ jdaviescoates

                                    When I'm not working I tend to just close my laptop lid.

                                    When I open it again I have to login to Roundcube again. This is a minor annoyance I want to avoid (Gmail doesn't do this).

                                    On my first quick search it look like perhaps I need to edit or comment out $rcmail_config['session_lifetime'] = 10;

                                    (e.g. https://billing.hostnox.gr/knowledgebase/55/------Session-invalid-or-expired--Roundcube-or-WHM.html?language=english )

                                    But no such line is included in /app/data/customconfig.php

                                    Any ideas?

                                    I guess I could experiment with higher values than 10, but I basically don't ever want my session to end unless I manually log out.

                                    Edit: looks like lots of people have this same issue, see also https://issuekiller.com/issues/roundcube/roundcubemail/15073963

                                    Edit 2: this would seem to suggest it could be related to a MySQL issue:
                                    https://forums.cpanel.net/threads/upgraded-to-11-30-0-now-roundcube-saying-session-expired-or-is-invalid.212331/post-875951

                                    Edit 3: sounds like perhaps this PR would fix it https://github.com/roundcube/roundcubemail/pull/7709

                                    Edit 4: see also https://github.com/emtiu/roundcube-cookielifetime

                                    Sigh. The state of open source webmail is so abysmal 😢 (I wonder if SnappyMail have fixed this annoying issue...)

                                    timconsidineT Offline
                                    timconsidineT Offline
                                    timconsidine
                                    App Dev
                                    wrote on last edited by
                                    #15

                                    @jdaviescoates I realise this is not the direction of most replies/solutions, but if the programmatic approach does not deliver, on my Mac I have a utility which responds to triggers like laptop shut and fires off an action. I'm sure Windows has similar. Although the execution action may be a bit brutal (close app).

                                    Just a thought.

                                    jdaviescoatesJ 1 Reply Last reply
                                    2
                                    • timconsidineT timconsidine

                                      @jdaviescoates I realise this is not the direction of most replies/solutions, but if the programmatic approach does not deliver, on my Mac I have a utility which responds to triggers like laptop shut and fires off an action. I'm sure Windows has similar. Although the execution action may be a bit brutal (close app).

                                      Just a thought.

                                      jdaviescoatesJ Offline
                                      jdaviescoatesJ Offline
                                      jdaviescoates
                                      wrote on last edited by
                                      #16

                                      @timconsidine thanks. I'm on Ubuntu, but probably stuff on here too I could try if my turning off uBlock doesn't help...

                                      I use Cloudron with Gandi & Hetzner

                                      jdaviescoatesJ 1 Reply Last reply
                                      1
                                      • jdaviescoatesJ jdaviescoates

                                        @timconsidine thanks. I'm on Ubuntu, but probably stuff on here too I could try if my turning off uBlock doesn't help...

                                        jdaviescoatesJ Offline
                                        jdaviescoatesJ Offline
                                        jdaviescoates
                                        wrote on last edited by
                                        #17

                                        @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                                        if my turning off uBlock doesn't help...

                                        Well, turning off uBlock Origin and Privacy Badger hasn't helped at all.

                                        I posted an issue on the Roundcube github too and they've just replied saying "this is not supported" and closed it 😞

                                        https://github.com/roundcube/roundcubemail/issues/8504

                                        So perhaps I'm trying to achieve something which isn't possible yet 😞

                                        Sigh. The state of open source webmail is so abysmal is makes me sad.

                                        I use Cloudron with Gandi & Hetzner

                                        necrevistonnezrN 1 Reply Last reply
                                        1
                                        • jdaviescoatesJ jdaviescoates

                                          @jdaviescoates said in How to stop Roundcube session ending when I close my laptop lid?:

                                          if my turning off uBlock doesn't help...

                                          Well, turning off uBlock Origin and Privacy Badger hasn't helped at all.

                                          I posted an issue on the Roundcube github too and they've just replied saying "this is not supported" and closed it 😞

                                          https://github.com/roundcube/roundcubemail/issues/8504

                                          So perhaps I'm trying to achieve something which isn't possible yet 😞

                                          Sigh. The state of open source webmail is so abysmal is makes me sad.

                                          necrevistonnezrN Offline
                                          necrevistonnezrN Offline
                                          necrevistonnezr
                                          wrote on last edited by necrevistonnezr
                                          #18

                                          @jdaviescoates Yeah, Alexander is not very helpful - though you gave him a location for the config that is non-standard and Cloudron specific (/app/data/ something).
                                          Again, I use Roundcube everyday on my work computer and the session is kept alive even between reboots with the config described above...
                                          Is it browser related (is it Firefox?) - maybe try a different one? A setting that deletes cookies from time to time?

                                          1 Reply Last reply
                                          3
                                          • jdaviescoatesJ jdaviescoates

                                            When I'm not working I tend to just close my laptop lid.

                                            When I open it again I have to login to Roundcube again. This is a minor annoyance I want to avoid (Gmail doesn't do this).

                                            On my first quick search it look like perhaps I need to edit or comment out $rcmail_config['session_lifetime'] = 10;

                                            (e.g. https://billing.hostnox.gr/knowledgebase/55/------Session-invalid-or-expired--Roundcube-or-WHM.html?language=english )

                                            But no such line is included in /app/data/customconfig.php

                                            Any ideas?

                                            I guess I could experiment with higher values than 10, but I basically don't ever want my session to end unless I manually log out.

                                            Edit: looks like lots of people have this same issue, see also https://issuekiller.com/issues/roundcube/roundcubemail/15073963

                                            Edit 2: this would seem to suggest it could be related to a MySQL issue:
                                            https://forums.cpanel.net/threads/upgraded-to-11-30-0-now-roundcube-saying-session-expired-or-is-invalid.212331/post-875951

                                            Edit 3: sounds like perhaps this PR would fix it https://github.com/roundcube/roundcubemail/pull/7709

                                            Edit 4: see also https://github.com/emtiu/roundcube-cookielifetime

                                            Sigh. The state of open source webmail is so abysmal 😢 (I wonder if SnappyMail have fixed this annoying issue...)

                                            A Offline
                                            A Offline
                                            alexlixs
                                            wrote on last edited by girish
                                            #19

                                            @jdaviescoates Facing same issue.

                                            girishG 1 Reply Last reply
                                            0
                                            • A alexlixs

                                              @jdaviescoates Facing same issue.

                                              girishG Offline
                                              girishG Offline
                                              girish
                                              Staff
                                              wrote on last edited by
                                              #20

                                              @alexlixs Can you confirm you are not a bot?

                                              1 Reply Last reply
                                              0
                                              Reply
                                              • Reply as topic
                                              Log in to reply
                                              • Oldest to Newest
                                              • Newest to Oldest
                                              • Most Votes


                                                • Login

                                                • Don't have an account? Register

                                                • Login or register to search.
                                                • First post
                                                  Last post
                                                0
                                                • Categories
                                                • Recent
                                                • Tags
                                                • Popular
                                                • Bookmarks
                                                • Search