Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Custom log out scripts

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 1.6k Views
    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.
    • T
      tech1
      last edited by

      so…i looked around for awhile and couldnt find any logout pages so heres one i modded from the origonal script.  hope you all like it.

      
      <title>Redirecting...</title>
      
       **Redirecting to [](<?=$my_redirurl;?>)...** 
      
      ```![logout.png](/public/_imported_attachments_/1/logout.png)
      ![logout.png_thumb](/public/_imported_attachments_/1/logout.png_thumb)
      1 Reply Last reply Reply Quote 0
      • C
        cnd.fflv
        last edited by

        Hi tech1,

        I faced the same problem as you did. Thanks for the clue.

        How to apply this script?

        Thanks…

        1 Reply Last reply Reply Quote 0
        • J
          jhochwald
          last edited by

          @cnd.fflv:

          How to apply this script?

          Save the Code, customize it…
          Then open your Captive Portal Settings, go down (until the End of the first Tag until you see the Logout page contents) now choose the File and Save your Settings.
          That should do it :)

          Have Fun!

          Regards

          /JH

          1 Reply Last reply Reply Quote 0
          • C
            cnd.fflv
            last edited by

            ok, thanks.

            2 questions:

            1. what should be in $my_redirurl?
            2. what URL will this page have? I want that users be able manually to get to this page when they need to logout…

            1 Reply Last reply Reply Quote 0
            • J
              jhochwald
              last edited by

              @cnd.fflv:

              ok, thanks.

              2 questions:

              1. what should be in $my_redirurl?
              2. what URL will this page have? I want that users be able manually to get to this page when they need to logout…

              PfSense fills the $my_redirurl variable
              The user can't access this URL directly. Search the forum, you have to do a bit more to get that working

              Regards

              /JH

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.