This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I need a logout button for the captive portal or a URL I can bookmark.

Users need to log out when they leave the pc. The logou button on the captive portal "you have logged in" page is not available because the user closes it.


I tried http://172.16.16.16:8090/logout.xml but it loads a blank page and the user remains logged in.



This thread was automatically locked due to age.
Parents
  •  

    Hello,

    Good idea! Can you please put this in as a FR at this link? https://www.sophos.com/support/feature-requests.aspx 

    Thank you,

    Bob

  • We needed this to be able to log out users on shared devices. 

    If you like a bit of PHP and Curl you could do it like this :

    $xml='<Request><Login><Username>ADMINUSERNAME</Username><Password>PASSWORD</Password></Login>
    <LiveUserLogout>
    <IPAddress>'.$_SERVER['REMOTE_ADDR'].'</IPAddress>
    </LiveUserLogout>
    </Request>';
    $xml=urlencode($xml);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_URL, 'YOUR_XG_URL:4444/webconsole/APIController?reqxml='.$xml);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_exec($ch);
    curl_close($ch);
    echo 'Your Session Has Ended';
    exit();

Reply
  • We needed this to be able to log out users on shared devices. 

    If you like a bit of PHP and Curl you could do it like this :

    $xml='<Request><Login><Username>ADMINUSERNAME</Username><Password>PASSWORD</Password></Login>
    <LiveUserLogout>
    <IPAddress>'.$_SERVER['REMOTE_ADDR'].'</IPAddress>
    </LiveUserLogout>
    </Request>';
    $xml=urlencode($xml);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_URL, 'YOUR_XG_URL:4444/webconsole/APIController?reqxml='.$xml);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_exec($ch);
    curl_close($ch);
    echo 'Your Session Has Ended';
    exit();

Children
No Data