Session effects one system to another
-
hi sir, please help me i am fresher in asp.net. actually when i login with login id admin through pc1 and another user login with same login id through pc2 then pc1 session variable effects pc2 session variable.i mean Session variable is not working properly.why
-
hi sir, please help me i am fresher in asp.net. actually when i login with login id admin through pc1 and another user login with same login id through pc2 then pc1 session variable effects pc2 session variable.i mean Session variable is not working properly.why
hi you can verify a session by SessionID those sessions differs on SessionID Hope to be useful
Mohammad Khansari
-
hi sir, please help me i am fresher in asp.net. actually when i login with login id admin through pc1 and another user login with same login id through pc2 then pc1 session variable effects pc2 session variable.i mean Session variable is not working properly.why
vikas shukla wrote:
actually when i login with login id admin through pc1 and another user login with same login id through pc2 then pc1 session variable effects pc2 session variable.i mean Session variable is not working properly
This means, there are some problem is your code. What do you mean by "Pc1 Session Variable Effects Pc2 Session variable". If you can give proper description of your error I can help you out. By the way, you can first go through this article, It may help you Exploring Session in ASP.Net[^] Let me know if you need any more help !
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
vikas shukla wrote:
actually when i login with login id admin through pc1 and another user login with same login id through pc2 then pc1 session variable effects pc2 session variable.i mean Session variable is not working properly
This means, there are some problem is your code. What do you mean by "Pc1 Session Variable Effects Pc2 Session variable". If you can give proper description of your error I can help you out. By the way, you can first go through this article, It may help you Exploring Session in ASP.Net[^] Let me know if you need any more help !
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
If we same username from different systems it doesn't effect session from used for same user in another system, ASP.net uses seperate session for each request from different systems or different browsers. If you dont want two users to use same username you can make use of database to check if the user is already logged in or not, Or you can use array of users in global.asax file where the data is global for all usersm, so that you control the user while loggin in (Checking with the global array)...