pls help restricting multiple logon to an application with single user account.
-
pls help restricting multiple logon to an application with single user account. Here wht m doing is , m checking login details against a database. if is a valid user then allowing to browse throuth the application. my requirement is if one user is loged in and if someother user tries to login with same user account i need to restrict the second user saying "this login is already in use". I can maintain a temp table for this , whenever a login is success i can update "isloged" field as true and we can set it false when user logs out. but how can we handle situations like if a user logs in and closes bowser close button instead of log out. if a user logs in and leaves doing nothing. pls help in resolving this, if possible write a sample code for me. thanks in advance.
-
pls help restricting multiple logon to an application with single user account. Here wht m doing is , m checking login details against a database. if is a valid user then allowing to browse throuth the application. my requirement is if one user is loged in and if someother user tries to login with same user account i need to restrict the second user saying "this login is already in use". I can maintain a temp table for this , whenever a login is success i can update "isloged" field as true and we can set it false when user logs out. but how can we handle situations like if a user logs in and closes bowser close button instead of log out. if a user logs in and leaves doing nothing. pls help in resolving this, if possible write a sample code for me. thanks in advance.
-
yes, its a repost... waiting for the solution......... thanks
-
yes, its a repost... waiting for the solution......... thanks
-
why you don't search for the solution rather tahn reposting and waiting do you know that google is your friend
The Web Developer. Beirout-Lebanon
You would not say m not trying for the solution if you would have studied my post clearly. I have mentioned everything , Try to help someone.
-
pls help restricting multiple logon to an application with single user account. Here wht m doing is , m checking login details against a database. if is a valid user then allowing to browse throuth the application. my requirement is if one user is loged in and if someother user tries to login with same user account i need to restrict the second user saying "this login is already in use". I can maintain a temp table for this , whenever a login is success i can update "isloged" field as true and we can set it false when user logs out. but how can we handle situations like if a user logs in and closes bowser close button instead of log out. if a user logs in and leaves doing nothing. pls help in resolving this, if possible write a sample code for me. thanks in advance.
Hi Surender, Dilip Here again, sorry for late response, i was busy.... so your problem is as [1] if a user logs in and closes bowser close button instead of log out. ==> if user is log in and close browser then you can call a javascript function on body's(HTML tag) unload event and in that function you can all a server side function which will perform logout procedure. for that you can use ICallback interface or you can use XMLHttpRequest. [2] if a user logs in and leaves doing nothing ==> in such situations, your session will be expired. and when session expires, you can do coding of logout in session_end event. OK, May my suggesions helpful to you. Regards Dilip Patel
-
pls help restricting multiple logon to an application with single user account. Here wht m doing is , m checking login details against a database. if is a valid user then allowing to browse throuth the application. my requirement is if one user is loged in and if someother user tries to login with same user account i need to restrict the second user saying "this login is already in use". I can maintain a temp table for this , whenever a login is success i can update "isloged" field as true and we can set it false when user logs out. but how can we handle situations like if a user logs in and closes bowser close button instead of log out. if a user logs in and leaves doing nothing. pls help in resolving this, if possible write a sample code for me. thanks in advance.
surender939 wrote:
if a user logs in and closes bowser close button instead of log out. if a user logs in and leaves doing nothing.
You can write a SQL Job which checks the tables and update the flag which are expired. For this, you need to keep a timestamp which gives the last accessed time.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Hi Surender, Dilip Here again, sorry for late response, i was busy.... so your problem is as [1] if a user logs in and closes bowser close button instead of log out. ==> if user is log in and close browser then you can call a javascript function on body's(HTML tag) unload event and in that function you can all a server side function which will perform logout procedure. for that you can use ICallback interface or you can use XMLHttpRequest. [2] if a user logs in and leaves doing nothing ==> in such situations, your session will be expired. and when session expires, you can do coding of logout in session_end event. OK, May my suggesions helpful to you. Regards Dilip Patel
dilip_rollwala wrote:
if user is log in and close browser then you can call a javascript function on body's(HTML tag) unload event and in that function you can all a server side function which will perform logout procedure. for that you can use ICallback interface or you can use XMLHttpRequest.
What if JS is disabled?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Hi Surender, Dilip Here again, sorry for late response, i was busy.... so your problem is as [1] if a user logs in and closes bowser close button instead of log out. ==> if user is log in and close browser then you can call a javascript function on body's(HTML tag) unload event and in that function you can all a server side function which will perform logout procedure. for that you can use ICallback interface or you can use XMLHttpRequest. [2] if a user logs in and leaves doing nothing ==> in such situations, your session will be expired. and when session expires, you can do coding of logout in session_end event. OK, May my suggesions helpful to you. Regards Dilip Patel
Thanks dilip for ur valuable suggistions...... i'll try to implement the said things Thanks once again cheers, Try to help someone