Solved

How to allow only single login to a web application

Posted on 2009-04-02
3
329 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I need a solution to a Webpage for Wholesale Availability. 11 45
Tech Writing Terminology - Pane or Panel? 8 77
Video and audio capture on Windows 7 3 80
WCAG audit tools 1 72
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

920 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

14 Experts available now in Live!

Get 1:1 Help Now