Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i make login page in asp.net c#. i (myself) open the login page in visual studio using firefox browser and my login will be appear.i enter the username (mati) and password.my session will be make with the name of (Mati).then i again open login page in visual studio using firefox browser and enter the user name (Ali) and password the session will be created with the name of Ali.i have two tabbed in single browser.one tab have (mati) session and other tab have (Ali) session.when i refresh the (mati) tab page, the session with mati will be replaced by ali.now i have ali session in the both tabbed.But i want that when mati logedIn the new user will not be able to make the new seesion untill mati logout.
Posted
Updated 16-Apr-13 11:11am
v2
Comments
Richard C Bishop 16-Apr-13 16:57pm    
That does not make any sense. However, each time you open a browser a session is created and there is nothing you can do about that. The only way for session to end is for it to timeout.
Member 9987026 16-Apr-13 17:04pm    
no sir.please unserstand my question.i (myself) run login page in visual studio 2012.and login my session will be create.but i again open login page in visual studio and enter different user name the session will created of that user.i have 2 user session in one browser.when i refresh the one user browser the session of the user will be replaces 2nd user.i hope sir you understand me.please help me.
José Amílcar Casimiro 16-Apr-13 17:23pm    
Are you asking how you can restrict a browser to have only one user session in your application? If so, I do not see how. You will have to code your application so that it does not allow more than one simultaneous session. But that raises other questions.
dschumann 16-Apr-13 17:37pm    
You may want to look at the SessionIDManager. It is found under the Namespace - System.Web.SessionState, think RemoveSessionID....
[no name] 17-Apr-13 0:22am    
have i experience once session open in single browser it will maintain same session in same browser till session expire, i mean to say your web will be automatically redirect to your default web page with existing user who is available in session, this will happen for single browser only, but if you are using another browser on same computer than picture is different and you are not looking for ASP.NET application or if your question is user who log in your application once still his/her session is not expiring or he/she not sing out, till that time no buddy can use that account any where than u can manipulate by help of global.asax or u have store in ur database user login status and accordingly u have to restrict users, please make clear your question before posting, hope this information help you :)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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