FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Can I configure the inactivity timeout of the FusionAuth Session cookie?

    Scheduled Pinned Locked Moved
    Q&A
    from-slack cookies sessions inactivity faq
    1
    8
    20.4k
    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.
    • danD
      dan
      last edited by dan

      I have a quick question about FusionAuth and configuring the inactivity timeout of the session cookie it creates. Specifically... Is it possible?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 2
      • danD
        dan
        last edited by

        Yes, you can set this in the Tenant OAuth config:

        https://fusionauth.io/docs/v1/tech/core-concepts/tenants#oauth

        Specifically the "Session Timeout" which is "The length of time an SSO session can be inactive before it is closed."

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • C
          chakshu
          last edited by

          Can we control the auto-logout time for the admin as well?

          1 Reply Last reply Reply Quote 0
          • danD
            dan
            last edited by dan

            @chakshu I'm not sure I understand.

            What do you mean? Do you want to change how long a user can be signed into the FusionAuth admin interface?

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            C 1 Reply Last reply Reply Quote 0
            • C
              chakshu @dan
              last edited by

              @dan Yes exactly that.

              1 Reply Last reply Reply Quote 0
              • danD
                dan
                last edited by

                @chakshu

                The FusionAuth application is just another application in the default tenant, so if you modify the "Tenant" -> "OAuth" -> "Session Timeout" setting for the default tenant, that should affect the FusionAuth admin users' sessions.

                Please let me know if it doesn't.

                --
                FusionAuth - Auth for devs, built by devs.
                https://fusionauth.io

                1 Reply Last reply Reply Quote 0
                • C
                  chakshu
                  last edited by

                  @dan said in Can I configure the inactivity timeout of the FusionAuth Session cookie?:

                  Session Timeout

                  I tried doing that for the admin user with a one-minute timeout. It wasn't logging me out for inactivity. I haven't created an application and I was using other tabs for quite some time.

                  1 Reply Last reply Reply Quote 0
                  • danD
                    dan
                    last edited by

                    @chakshu

                    Sorry, I pointed you to the incorrect setting.

                    You can go to Applications > FusionAuth > Edit > JWT > Refresh Token duration

                    Changing that to 1 (the value is in minutes) caused me to be signed out of the admin application after 60 seconds.

                    Hope that helps.

                    --
                    FusionAuth - Auth for devs, built by devs.
                    https://fusionauth.io

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