473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

logout the previous session for the same user

2
Hello,

I want my web application user to login as many times as he wants but on every successive login, the application should automatically take care of logging out the previuos session for that user.

My web application will be used by multiple users at a single point of time..so the solution should take care of the performance issue as well..

Please let me know if you any clue as on how to achieve this.


Thanks,
Jatin
Sep 28 '08 #1
4 2026
joedeene
583 512MB
Hello,

I want my web application user to login as many times as he wants but on every successive login, the application should automatically take care of logging out the previuos session for that user.

My web application will be used by multiple users at a single point of time..so the solution should take care of the performance issue as well..

Please let me know if you any clue as on how to achieve this.


Thanks,
Jatin
uhm, you have not said what language you are doing this with, like Visual Web or VB.net or C# its probably asp.net, and also we do not do homework assignments for other users, please read the Posting Guidelines for a full list of guidelines to posting. but i, and other members/experts, here would be more than welcome to assist you with specific coding problems.

joedeene
Sep 28 '08 #2
deric
92
There may be other ways to solve this... but this is just my idea: create or use another flag (a field in your user's datatable) to check if it is the same user (with the same login details) who is logged-in or not. It's up to you what data are you going to set for that flag, it could be the IP address, a random number or anything...
Sep 29 '08 #3
Jats4U
2
The programming language I am using is C#.

Setting a flag in the d-base is one solution but it won't be a good option performance wise because the application will hit the d-base on every user action to check if the session -id / ip address has changed. If so, then do not allow the user to perform any action and log him out.

Please suggest if you have any other option

Thanks & Regards,
Jatinder
Sep 29 '08 #4
deric
92
There's no other way to check if another user logs in with the same login details on another computer without going through the server. It's a drawback, though, but that's logically the way to go. Performance will be compromised to achieve that requirement because we can't do magic anymore. You just need to design it in a way that it will still perform efficiently.

Another option would be to not allow the same user to login in another computer if he's currently active somewhere.
Sep 29 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: konsu | last post by:
hello, i need to implement a secure web site in php and mysql but i have just started looking at php a few days ago, and i would appreciate any advice from the experts. the site, as i said,...
6
by: Jeff | last post by:
I've searched the web for hours trying to figure out this problem and can't seem to find any pertinent answers. I have a website where the user starts on a login page, puts in their credentials and...
5
by: vincent | last post by:
Hi, If i login to the site again (may be in the same pc or different pc), system must allow me in and end my previous session. How do i go about doing this? This is to ensure that an user...
2
by: Vinod I | last post by:
Hi Team, I would like to know how "Logout" can be handled in asp.net page. Scenario is like this:- I have a "logout" option in my menu. As soon as user clicks this, will show a "Sucessfully...
4
by: ad | last post by:
I use the Login controls of Asp.net 2.0 in my program. I want to logout a user by program, I try Session.Abandon() for this. But I found that the user is the same after I execute Session.Abandon()....
5
by: Andy | last post by:
Hi, I want to prevent the user from viewing the previous page using the Back button after logout. I want to instead show that this page has expired. How do I do this? Here is my codebehind...
3
by: roshni86 | last post by:
I have the following code for a logout of an account in php.However it is not working,as when i press the "back" button,the page returns to the previous page where a user had signed and viewed. ...
6
by: Thiago Macedo | last post by:
I could not find on the web a complete solution for this task. This is not the perfect solution, because it's doesn't have the ability to log the logout if browser crash or user leave it open while...
10
by: DavidPr | last post by:
When I logout as one user and log in under a different user, it opens with the last user's information. User 1 - Unsername: Davey Jones User 2 - Unsername: David Smith I log out from Davey...
5
by: vinodsk101 | last post by:
Hi all, I am developing a web application. I am using Servlet and JSP. After logout the user should not able to see the previous pages and page should navigate to loginpage.jsp. I have used...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.