How to manage Memberstack login sessions - accessing user data and removing timeout limits?

Post author
Mike Atkins

Hello,

Is it possible to access information regarding member access? I would be looking to see the following:

  • Members currently logged in
  • Member first login date/time
  • Member last login date/time

Comments

6 comments

  • Comment author
    Alastair Budge

    If you integrate Profitwell then you can see this kind of activity through their dashboard. Not perfect (and I wish MS had it natively), but it is better than nothing.

    0
  • Comment author
    Tim Haden

    If anyone is looking for this kind of capability check out luckyorange.com. if you want to see who's on your site & who is currently logged in. It's a simple but very affordable solution that we've used that also allows you to chat directly with consumers on your website and replay their activity to explore individual users experiences

    0
  • Comment author
    Boggan null

    Hi guys! How are you doing?

    If I'm not mistaken as it comes customized the log in has a Time Out (I use the sign in and log in components of memberstack).

    Is there a way that when the user logs in it is open forever?

    Greetings!

    0
  • Comment author
    Raquel Lopez

    I'm assuming you're talking about the session duration after log in. Session duration by default is 14 days. You can configure the default session duration in the admin. However Memberstack doesn't indicate there's an option to set the session duration unlimited or if there's a maximium amount of days

    0
  • Comment author
    Boggan null

    I need that users who are already logged in when they put the domain .com directly take them to the internal section of the web app as facebook does for example, if you put the domain of the home you are directed to your session.

    I am not getting

    0
  • Comment author
    Raquel Lopez

    Ok, so you want to block access of public pages to logged in users. Basically redirect logged in users of certain pages

    You could add a script to the pages that you from your logged in users. For example add this script in your homepage. If your're logged in you should be redirected to '/app/dashboard'

    function codeToRun() {
       const currentUser = localStorage.getItem("_ms-mem");
       if(currentUser) window.location.href = '/app/dashboard' // change the slug of the url you want to redirect your logged in users
    }
    
    if (window.$memberstackReady) {
      codeToRun();
    } else {
      document.addEventListener("memberstack.ready", codeToRun);
    }
    
    0

Please sign in to leave a comment.