Solved

How to allow only single login to a web application

Posted on 2009-04-02
3
328 Views
Last Modified: 2012-05-06
Hi,

My web app is based on struts. My question is as follows

I have logged in using my username and password and again i have accessed the application in another tab or in another browser in the same system. at that time it should not ask the user to login again. It has to display the page of the previous user.

Fopr example, take gmail. If i am logged in with a username and password and again if i am accessing the gmail in another tab, it will open the logged in page of the user. so that i have to logout first and then only i have to login with whatever teh username and password might be

Hope you understand. please let me know if you need any further info in this regard.

0
Comment
Question by:CIPL-Senthil
3 Comments
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 500 total points
ID: 24056819
You need to use SESSION to handle for single user auth ... If you have session on the another tab page, then you can handle it.

Normally, all the web application have like this idea?

didn't you use SESSION?
0
 

Author Comment

by:CIPL-Senthil
ID: 24060623
Thank you


But already we are knowing this.  But We want to know any other possibility exists for this

Any ore suggestions...
0
 
LVL 4

Expert Comment

by:sprisoner
ID: 24070560
If you are using a database, whenever user logs in, store the logged time and a flag as true in database. Let every page check this value and if user has logged in recently, you can skip the login part.

Here, you need to login time, because you do not want the user flag to be true always. So check the flag as well as time (for eg. has the user logged in and in last 20 mins?), then no check, else ask to relogin.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

      Install BugTracker on Windows 2008 server Step 1:  Install windows 2008 server 32 bit OS and configure IIS. Step 2:  Install SQL server ( SQL server 2005 or SQL server 2005 Express edition. The installer for 2008  version isn’t very f…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now