Hello.
is there a way to log all users off or log a user off automatically after a certain time of inactivity?
Thank you in advance
finn
- 150
Hello community,
I want to remove the information about how many visitors a profile has had - or at least restrict who can see it. I know I have done it before but now I have forgotten how.
Please help
All the best
Finn
- 114
-
-
·
LeonidS
- ·
Hello @EducatedSingles !
It is possible to disable it in the Studio->Naviagtion->Persons-View Person actions area.
-
·
LeonidS
-
Thank you very much @LeonidS
Hello community. Come and say hello to some of the new members in The Educated Singles Club running on the UNA platform. We can't wat to see what version 13 (if it is coming) has in store for our members
- 290
Please help.
Suddenly we can't save uploaded images to pages, mass mails and more. We can upload, but we can't save. We get either an error 403 or the system just hangs.
We haven't changed anything or upgraded anything.
Please help
Finn
The Educated Singles Club
- 300
-
- · EducatedSingles
- ·
SOLVED: It was hosting provider who suddenly had changed mod_security
-
- · Will Monte
- ·
That is why it is best to go with your own server; you have complete control.
We have come problems with conversations when wanting to send a new message.
Sometimes we get HTTP error 403
Sometimes nothing happens after the "SEND" button has been pressed
And.. sometimes it works
HELP!
All the best
Finn
- 430
-
-
·
LeonidS
- ·
Hello EducatedSingles !
Did you notice any differences between those 2 situations?
-
·
LeonidS
-
- · EducatedSingles
- ·
No. We didn't notice any difference
-
-
·
LeonidS
- ·
Did you try to send several messages in very slow time interval? Or it might happen with first for the long period message too?
-
·
LeonidS
| |||
| |||
|
Jedi
Total points: 996.5
Hello @EducatedSingles !
Well, the logout clears the COOKIE and Sessions of the logged user, but it's not possible to do with the default code.
So you need to create the class which will be a child of BxDolService class, redeclare there the destroy method to provide the possibility to work with predicated ID and write the Cron script which will call your class in some interval. See the code the mentioned method:
function destroy($bDeleteCookies = true)
{
if ($bDeleteCookies) {
$aUrl = parse_url(BX_DOL_URL_ROOT);
$sPath = isset($aUrl['path']) && !empty($aUrl['path']) ? $aUrl['path'] : '/';
setcookie(BX_DOL_SESSION_COOKIE, '', time() - 86400, $sPath, '', false, true);
unset($_COOKIE[BX_DOL_SESSION_COOKIE]);
}
$this->oDb->delete($this->sId);
$this->sId = '';
$this->iUserId = 0;
$this->aData = array();
}
You need to add there the work with provided ID, not only from the COOKIE.
Thank you very much! Will try it out