How can I store total users logged time?
We can save the time when users logging in, but the user closes the window how can we store logging out time.
Please guide me through this query.
Thanks in advance.
Related
i am new to jmeter and i am trying to login with 3 different users using the CSV config, but the problem is when i login with second user, the first user gets logged out.
Similarly logging in with third user logs out the second user. How to handle it using jmeter.
I think on any website at a time only one user can logon as the session allows only one.
So if jMeter is trying to logging in by the second user it must be logout the previous one.
1) Add cookie manager
2) Instead of logging all three users in one scenario make looped scenario where first user logs in during the first session, the second one in the second session and so on.
Or you could make three different threads and all the users would connect at the same time with different sessions. But it is more heavy resource-wise.
Hi I am customizing OpenERP. I want to restrict user to login into application once at a time. That means; I have a user called "Accountant". I want only one session should be allowed to login with "Accountant" user name at a time. Others can login with their own user names.
Like that application should allow only one session for each user at a time.
I have not seen any plugin for this. Can I do this through customization?
Please guide me.
This blog highlights how to do it. But I don't think there is a live implementation of this available as open source http://www.zbeanztech.com/blog/how-restrict-multiple-logins-user-openerp-0
We do plan to do it ourselves as well but haven't had a moment yet.
In my website i want to implement the functionality of re-login after the page sits idle for some time. I mean when user opens the page and left the page for some time and doing some other work. when the user comes again i need to again ask the credentials of the user. How can it be done.
Your have to check session on all pages or other options is use Asp.net Membership
I have a struts2 application. In my application i maintain a session using
Map session = ActionContext.getContext().getSession();
session.put("login","true");
session.put("username",getUname1());
session.put("balance",balance);
this way.
If one user can login there is a no problem to get user name and balance.If suppose more than one user can login, how will i get the balance for corresponding login user.
Please any one help me.
Thanks in advance
You don't have to bother. The session is unique for each users. When you will try to get the value of balance for the user, you will get the value you set when he logged in. You won't be able to get the value of balance of an other user through the session.
I have a CakePHP app where users have pages tied to their accounts. For example, the page ID 123 is tied to user 321.
Whenever the user logs in, all the pages tied to his account are saved in the session.
Admins are the only one who can tie a page to an user. And here is the problem. If an admin adds a new page to an user and if this user is logged, he won't see this new page tied to his account unless he logs out/in. In other words, while his current session is valid.
What would be the best way to deal with this? If there is any way...
Find the user session and... update? delete? Is this even possible and/or "elegant"?
Send a message to this user warning about the new page and tell him to logout/login?
Stop saving this info in the session and rely on database only?
You really should stop saving this info in session.