Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,


i am working web application in my application 3 modules . 1.admin 2. client 3. franchise. first i login as a admin in my system firefox browser i didnot logout admin . after 10 minits i trying to login as client same browser (firefox) same system
client also how to avoid this 2 modules canot login in same browser how to resolve this please help me

thanks and regards

srinivas
Posted
Comments
Parwej Ahamad 28-Jun-11 2:05am    
Your question is not more clear, so elaborate more about which security method you have used? Have you maintain session timeout/Cookies expiration policy?

I don't think it is possible. This[^] post suggests some solutions, but they all sound hacky to me. Why would you care ?
 
Share this answer
 
In general, this is not possible – you can't tell whether the user has closed a previous tab or not. If the site is behind a login, you can invalidate previous sessions by the same user on login, so they can't operate it in two different browsers at once, though you should think extremely carefully before doing this as it is generally a big annoyance for the user (if they want to open two sessions there is probably a good reason for that).

For multi-step transactions you should store the transient information in the page, or in a database entry keyed by something stored in the page, not in the session. You can protect such transactions from being double-entered by checking if there are any already open, but if you do this you must be extremely careful with cleanup since you won't get a notification if the user's browser closes and if you don't clean up past transaction entries they will never be able to start a new transaction. Again, you should not enforce only one transaction at a time unless there is a very good reason; if the user wants to do two things at once you should let him.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900