Deleting session id's created by browsers on server's end
-
Hi, I am having a web application, which can be accessed by different users based on their userid's and passwords. Now I want to prevent user 1 from accessing the application from more than one system. In order to prevent this I have created a table with three columns as : userid password flag with flag having two values (true, false) true means that user is logged in false means looged off session id generated by the server when the session is created SESSION.SESSIONID gets the id generated on the IIS. reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx now how can I delete it? so that there can be only one user per user id. am I right in achieving the goal? I don't want to use Asp.net MembershipProvider. thanks
-
Hi, I am having a web application, which can be accessed by different users based on their userid's and passwords. Now I want to prevent user 1 from accessing the application from more than one system. In order to prevent this I have created a table with three columns as : userid password flag with flag having two values (true, false) true means that user is logged in false means looged off session id generated by the server when the session is created SESSION.SESSIONID gets the id generated on the IIS. reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx now how can I delete it? so that there can be only one user per user id. am I right in achieving the goal? I don't want to use Asp.net MembershipProvider. thanks
I don't think I understand what you are trying to accomplish. Are you looking to limit the IP addresses that can access the application? Are you trying to ensure that if a person is logged in through one browser that they can't be logged in from a second?
-
Hi, I am having a web application, which can be accessed by different users based on their userid's and passwords. Now I want to prevent user 1 from accessing the application from more than one system. In order to prevent this I have created a table with three columns as : userid password flag with flag having two values (true, false) true means that user is logged in false means looged off session id generated by the server when the session is created SESSION.SESSIONID gets the id generated on the IIS. reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx now how can I delete it? so that there can be only one user per user id. am I right in achieving the goal? I don't want to use Asp.net MembershipProvider. thanks
shankbond wrote:
session id generated by the server when the session is created SESSION.SESSIONID gets the id generated on the IIS. reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx now how can I delete it?
Why you want to delete it ? How does it relates with signle user singing?
Session ID is unique
for each and every user. On Logoff you make sure that, data base field is reseting properly. and what about if user Close the Browser byClicking [X]
button ? You need to handel this situation also. Thanks !Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
-
I don't think I understand what you are trying to accomplish. Are you looking to limit the IP addresses that can access the application? Are you trying to ensure that if a person is logged in through one browser that they can't be logged in from a second?
-
shankbond wrote:
session id generated by the server when the session is created SESSION.SESSIONID gets the id generated on the IIS. reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx now how can I delete it?
Why you want to delete it ? How does it relates with signle user singing?
Session ID is unique
for each and every user. On Logoff you make sure that, data base field is reseting properly. and what about if user Close the Browser byClicking [X]
button ? You need to handel this situation also. Thanks !Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
-
Hi abhijit,
Abhijit Jana wrote:
button ?how can I do that? can You please help.... thanks
shankbond wrote:
how can I do that?
You can try this way,
function CheckBrowserClose()
{
, Alt+F4 , File -> Close
if(window.event.clientX < 0 && window.event.clientY <0)
{
// Call a popup and on server side handle the database update}
}And called it on Body
unload
.Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
-
Hi, I am having a web application, which can be accessed by different users based on their userid's and passwords. Now I want to prevent user 1 from accessing the application from more than one system. In order to prevent this I have created a table with three columns as : userid password flag with flag having two values (true, false) true means that user is logged in false means looged off session id generated by the server when the session is created SESSION.SESSIONID gets the id generated on the IIS. reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx now how can I delete it? so that there can be only one user per user id. am I right in achieving the goal? I don't want to use Asp.net MembershipProvider. thanks
it is possible when the window is closed or at the time of session time out, but it is not possible in case of network failuer
-
it is possible when the window is closed or at the time of session time out, but it is not possible in case of network failuer
Hi Abhijit and YESU,
yesu prakash wrote:
but it is not possible in case of network failuer
I think Yesu's point is correct , can we handle this scenario as well, it does exists in gmail though. whenever two or more users with same email id's log in, in different machines , one of them can log out all other machines. thanks