EducatedSingles

  •  ·  Premium
  • 1954 views
Add new...
 
 
·
Added a discussion

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

https://educatedsingles.com/

  • 221
    • 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

        Not logged in users can't 'Comments Post'.
        ·
        Added a discussion

        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


        hemt38agnfcqsiccuj8hdxchab9zcdcn.png



        All the best

        Finn

        https://educatedsingles.com


        • 188
          Not logged in users can't 'Comments Post'.
          ·
          Added a discussion

          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

          image_transcoder.php?o=sys_images_editor&h=172&dpx=1&t=1645692227

          • 347
            Not logged in users can't 'Comments Post'.
            ·
            Added a discussion

            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

            https://educatedsingles.com

            • 362
              Not logged in users can't 'Comments Post'.
              ·
              Added a discussion

              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


              • 491
                Not logged in users can't 'Comments Post'.
                EducatedSingles Discussions
                Achievements

                Jedi

                Total points: 996.5

                103.7 point(s) to reach
                Info
                Location:
                Nice, Provence-Alpes-Côte d'Azur, France
                Gender:
                Man
                Friends count:
                Followers count:
                Name:
                EducatedSingles
                Membership
                Premium
                My Followed Channels