Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Session timeout
  • Vote Up0Vote Down thurzo101thurzo101
    Posts: 2Sendy user

    We are serving this app using NGINX are a little frustrated by the very short session time which will log the user out and loose any unsaved changes in the Campaign edit form? I have seen some Apache fixes for this but not for NGINX. Anyone know how to extend the session time to 2 hours?

    Appreciate your help.

    Side note: As I was typing this I just saw a "Draft Saved at ..." pop up. That would be such an awesome feature for Sendy. Would stop me getting shouted at and improve quality of life for many :)

  • 2 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,772Sendy support

    Hi,

    The login cookie expires 1 year after your sign in. However if you quit your browser, either explicitly, or computer shutdown or restart, the cookie will be invalidated. Or, if you click the 'Log out' button of course.

    If you're frequently being logged out, try this → https://sendy.co/forum/discussion/1210/login-timeout/p1

    Thanks.

    Best regards,
    Ben

  • Vote Up0Vote Down thurzo101thurzo101
    Posts: 2Sendy user

    My session.cookie_lifetime = 0 which is set to expire when the browser closes. So that was not it. Our sessions were lasting about 20 mins.

    I changed the garbage collection to the following:

    ```

    php.ini

    session.gc_divisor = 1000 session.gc_maxlifetime = 7200 ```

    The session.gc_maxlifetime was set to 1440 which is 24 minutes as a default. Now my sessions are lasting 2 hours and no one is shouting at me!

This discussion has been closed.
All Discussions