way to determine if user is currently logged in

  • Rich Casella
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 weeks ago #86009 by Rich Casella
Tuan,

I'm liking membership pro. however, I think I will have a few questions for you along the way.

There seems to be some inconsistencies, or things I currently dont yet grasp.

One thing I need is a way to determine if a user is currently logged in and if so, under what account name.

the reason why I am doing this is because I am creating multiple account names and logging in under each to test the functionalities of what a user can have access to.

I there a way to get a log out button on the screen? I think the system is keeping me logged in when I want to log out.

Also, it seems to keep me logged in for a certain period of time and then automatically log me out? is that true and if so is there a way to change that?

I would gladly send you super admin info if you need it. Im guessing I send that privately.

RIch

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #86035 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic way to determine if user is currently logged in
Hi Rich

I think these are general Joomla questions rather than a Membership Pro question. I will try to answer you one by one:

1. You should publish and use Joomla core login module in a position on your site. When you have that module published, if you are not logged in, the module will show you a form to allow you to login. When you are logged in, your name will be displayed on that module and there is also a button to allow you to logout, too

2. Yes, Joomla will login you for certain amount of time. If there is no activity from you during that time, you will be logged out. The amount of time is controlled by "Session Lifetime" config option in Joomla (it is 15 minutes by default). If you want to change it, go to System -> Global Configuration, look at Server tab, find that config option and change it if needed

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #86179 by Jill Clarke
Replied by Jill Clarke on topic way to determine if user is currently logged in
Hi Rich,

It is a counter intuitive wording because the joomla "login" module is also the Logout module.

Kind of like when windows had a "start" button and you had to click it to find shutdown! (Now changed to a Windows button!)

I try to name that module Login/Logout to avoid *some* confusion.

The other thing to check out in joomla is the use of "Guest" - it lets you display info (ie. you have to log in to see something, and the login form) only to users on the site who are not logged in. Once they log in and are in Registered, it disappears - quite a handy thing

J
The following user(s) said Thank You: Tuan Pham Ngoc

Please Log in or Create an account to join the conversation.