DA logout when I reload the browser tab

pmjcreations

Verified User
Joined
Jul 3, 2019
Messages
54
Hello,

I see that when I reload the browser tab using the browser's reload icon, I get logged out automatically from DA.

I can go through any pages with a long time idle-time, and I don't get logged out.

But this reloading is kicking out instantly.

Anyone facing this issue? Any possible solution?
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
Hello,

Any way your IP changes on a tab reload? What do you see in logs of directadmin? Check /var/log/directadmin/ for more details.
 

CanadaGuy

Verified User
Joined
Nov 14, 2019
Messages
158
It could be this:


Do you have IPv6 enabled or running on your computer? I just experienced this so I thought I would pass it along.
 

pmjcreations

Verified User
Joined
Jul 3, 2019
Messages
54
There are no IP changes when I reload the browser tab, @zEitEr.

I had already disabled the IP check the same way as @CanadaGuy suggested a long bac ago.

But I found a few points.

1 - When I checked the error log, I see that below line. Referer port (443) does not match DA's (2222): https://mydomain.tld/whmcs-url/configservers.php

2 - The log out when reloading happens only when I logged to my DA from WHMCS's server list. In WHMCS we can auto-login to our configured server.

3 - When I logged to DA directly and not via WHMCS, I don't experience the log out when reloading.

A screenshot of the related port number settings is


I hope this information will help to resolve this issue. I don't know how to solve this though :)
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,512
You might also want to create the file /usr/local/directadmin/data/templates/custom/referer_check.allow and add your WHMCS domain name in that file. Please note it should have a empty line at the end. Then restart DirectAdmin.

Also see https://www.directadmin.com/features.php?id=1997 (but you do not need to have http:// or https:// in front of the domain as the examples in the guide says.
 
Top