I've alredy implemenetd this concept, But, Users are Login to 4 to 5 browsers at a time as a result their daily productivity is going to 16hrs to 20hrs. But actual productivity should be 9hrs or less than that.
I want to know how to over come this please? And I don't want to restrict them by opeing many browsers, They can open N number of browsers at a time...
you can check user on login stage from database if user already check then show a message you already login do you want to continue with this or want to session (or any other message) if user select yes then dont enter new entry for this user if user select
no then logout first one and add new entry for this user on this way you can easily calculate your user time
Mark As Your Answer if You think its Help you
Sohail Shaikh
Marked as answer by aparitala on Dec 20, 2012 12:29 AM
in this condition you have to use sql session state because its update user session on every activity but when user close the browser then its session activtiy will not update here you can create a stroe procedure its check on every activity that get all
those user which are not visit any page from last 20 mint and close there session this way . you can get your goal but its not recomened to do this
aparitala
Member
14 Points
91 Posts
Concept of capturing user Login and Log Out
Dec 12, 2012 02:03 PM|LINK
Hi,
I've alredy implemenetd this concept, But, Users are Login to 4 to 5 browsers at a time as a result their daily productivity is going to 16hrs to 20hrs. But actual productivity should be 9hrs or less than that.
I want to know how to over come this please? And I don't want to restrict them by opeing many browsers, They can open N number of browsers at a time...
Please is there any way to overcome this?
SohailShaikh
Contributor
6281 Points
1188 Posts
Re: Concept of capturing user Login and Log Out
Dec 12, 2012 03:06 PM|LINK
hey
you can check user on login stage from database if user already check then show a message you already login do you want to continue with this or want to session (or any other message) if user select yes then dont enter new entry for this user if user select no then logout first one and add new entry for this user on this way you can easily calculate your user time
Sohail Shaikh
aparitala
Member
14 Points
91 Posts
Re: Concept of capturing user Login and Log Out
Dec 14, 2012 01:49 PM|LINK
Means? every time on page load we need to compare the current user session with the Session that alredy stored in DB for today?
SohailShaikh
Contributor
6281 Points
1188 Posts
Re: Concept of capturing user Login and Log Out
Dec 15, 2012 04:19 AM|LINK
no in just login page you have check in database
Sohail Shaikh
aparitala
Member
14 Points
91 Posts
Re: Concept of capturing user Login and Log Out
Dec 24, 2012 08:29 PM|LINK
Hi,
It becoming worse! LogOut time is not capturing if user close browser directly or from Task Manager.
Is there any plugin I can create so that i can track? Please do advice?
SohailShaikh
Contributor
6281 Points
1188 Posts
Re: Concept of capturing user Login and Log Out
Dec 25, 2012 08:23 AM|LINK
in this condition you have to use sql session state because its update user session on every activity but when user close the browser then its session activtiy will not update here you can create a stroe procedure its check on every activity that get all those user which are not visit any page from last 20 mint and close there session this way . you can get your goal but its not recomened to do this
Sohail Shaikh
hans_v
All-Star
35998 Points
6551 Posts
Re: Concept of capturing user Login and Log Out
Dec 25, 2012 09:38 AM|LINK
Please rethink your design. The web is stateless. There's no full proof way to detect users logging out!
aparitala
Member
14 Points
91 Posts
Re: Concept of capturing user Login and Log Out
Dec 26, 2012 01:14 PM|LINK
Ok! Thank You,
Can you guide me how to detect user is active or not