🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved How to increase session expire or Logout time?

    Technical Help
    2
    2
    532
    Loading More Posts
    • 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.
    • R
      Rosa A Hancock last edited by

      How to increase session expire or Logout time?

      1 Reply Last reply Reply Quote 0
      • Sanjeev
        Sanjeev developer UVdesk Staff last edited by

        @Rosa-A-Hancock

        By default session expire time is around 10 min means if you are inactive on site from last 10 min it will automatically logout after 10 minute of inactivity.

        If you wish to change it follow below solution.

        Locate path in your project config->packages->framework.yaml

        You will basically store the sessions in the /var/sessions/ directory and that's it, the lifetime option will work again. You can do this quickly modifying your framework.yaml file in the session block like this:

        session:
              handler_id: session.handler.native_file
              save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
              # 2 Days lifetime (172800 seconds)
              cookie_lifetime: 172800
              cookie_secure: 'auto'
              cookie_samesite: 'lax'

        Most probably it should will work for you.

        And after saving framework.yaml file you should clear your project cache by below command:

        php bin/console c:c

        1 Reply Last reply Reply Quote 1
        • First post
          Last post