Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» Captive Portal» logout problem
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: logout problem  (Read 747 times)
0 Members and 1 Guest are viewing this topic.
itaca
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: March 30, 2010, 06:33:59 am »

I click on the logout button on the logout popup, and it just sits there "waiting for 10.10....."

it will sit there for a good 5 minutes before doing anything

Pfsense version  1.2.3
Logged
lol
Jr. Member
**
Offline Offline

Posts: 27


View Profile
« Reply #1 on: April 03, 2010, 10:42:53 am »

Hi,
Same issue...
With IE click twice & it works. With Firefox, cliks hundred times & still doesn't work...
Logged
lol
Jr. Member
**
Offline Offline

Posts: 27


View Profile
« Reply #2 on: April 20, 2010, 04:18:57 am »

Hi,
Nobody have a solution  Huh
Don't work with Safari, Opera, Chrome or Firefox...
Please...
Logged
cruzades
Full Member
***
Offline Offline

Posts: 55


View Profile
« Reply #3 on: April 21, 2010, 07:52:31 am »

after the first click on log-out pop-up, you are actually logged out already.

here, try to click it once, and close it, then try to open a new page, at this point you will be redirected to portal again.
Logged
lol
Jr. Member
**
Offline Offline

Posts: 27


View Profile
« Reply #4 on: April 22, 2010, 02:22:53 am »

after the first click on log-out pop-up, you are actually logged out already.

here, try to click it once, and close it, then try to open a new page, at this point you will be redirected to portal again.

Hi,
Thanks for your answer.

Most of the time click only one time is not enough. Client is still connected...

You're right, but it's not a "clean" solution. I have to explain to each client that they have to click twice (or more)...
If they don't click twice & close the browser without to be disconnected, the counter continue to run, & they lost their credits...

They think I'm not honest... I'm not happy with this solution !
Logged
itaca
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #5 on: May 10, 2010, 12:42:36 pm »

modify index.php



if ($_POST['logout_id']) {
    //disconnect_client($_POST['logout_id']);   <---------comment this line
    echo <<<EOD
<HTML>
<HEAD><TITLE>Disconnecting...</TITLE></HEAD>
<BODY BGCOLOR="#435370">
<SPAN STYLE="color: #ffffff; font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">
<B>You have been disconnected.</B>
</SPAN>
<SCRIPT LANGUAGE="JavaScript">
<!--
setTimeout('window.close();',5000) ;
-->
</SCRIPT>
</BODY>
</HTML>

EOD;
disconnect_client($_POST['logout_id']);   <------ add line
Logged
lol
Jr. Member
**
Offline Offline

Posts: 27


View Profile
« Reply #6 on: May 14, 2010, 12:21:48 pm »

Hello Itaca,
Thanks a lot for your help. It works very well with Firefox !
Not with the others browsers (Chrome, Safari or Opera, but it's not important)

 Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.172 seconds with 21 queries.