Skip to main content
zzarrouk
Staff
Staff
December 13, 2019

Technical Tip: Force Captive Portal logout

  • April 16, 2026 at 12:47 PM
  • 0 replies
  • 10502 views
Description
This article describes the necessary configuration to allow the captive portal logged on user to force a logoff.

Solution
There is a configuration option that can be enabled on the CLI which will make the authentication keep alive and the user can logout.

If the fortigate in VDOM:
#config global
config system global
set auth-keepalive enable
end
Authentication keep alive keeps authenticated firewall sessions from ending when the authentication timeout ends.
When enabled, an HTML page will be displayed and the firewall authentication keep alive will prevent sessions from ending when the authentication timeout ends.
In that page, the user can logout completely from the captive portal as well.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT