Login twice

Hi,
I have built an site with JSP, I authenticate the user, I put the username in session object...
The problem is if a new browser window is opened and new session is created it lets one
user to login even if he is already logged in in other window.
So how should I see if an user is logged in and not to let him do that again.
With application object? Is there one in JSP?
Regards,
Adrian

Have a llok at, http://forum.java.sun.com/thread.jsp?forum=33&thread=259131. You can use the logic that I explained in Reply 1.
Sudha

Similar Messages

  • Login twice in same apex app by same user not possible

    Hi,
    In itself it is possible to login twice by same user in same appl.
    But when using both apps on diff pages eachtime the user is prompted to login again.
    Why is that and why cant'w we use the app twice by same user.
    It is possible to use same app by same user twice
    Thanks in advance,
    Hugo

    I think it is probably due to your cookie and the session state. I cannot use IE or FF to access the same application twice with the same id, otherwise if I do different searches or change pages, the sesiion in the other window gets confused and starts showing session state varibale from the other window. This is with two different windows (not tabs) of IE or FF running.
    But, I can easily use IE, FF, and Chrome to access the same application with the same credentials, and everything will work as if I logged in with three different ids. I barely remember this 'problem' from 'the old days', and cookies had something to do with it. It "may" have been that the solution (in some cases, depending on what you and the app are doing), was during the authenication process that every app creates and uses a cookie with the same name.
    Hope this helps some,
    Bill Ferguson

  • Why do I have to login twice after sleep mode?

    Until recently I have been able to login one time with a password to get to my desktop. Now I have to login twice and I have no idea why. I am running Yosemite, whatever the newest version is. I'm not too tech savvy, but have checked every setting I can think of to no avail. Any help would be appreciated.

    Just to be clear, it's not normal to have to log in twice when FV is on. If you want to try to solve that problem, ask for instructions.

  • Login twice to Query Designer

    Hi
    We are facing an issue, where we have to login twice, when we start either the Query Designer or the Web Application Designer. When I start up, choose a system and logon, I get a pop up message saying "The standard transport system is active. SAP GUI connection is not activated for current connectoin to BI system. Do you want to reconnect to BI system and activate SAP GUI connection?" When I click "Yes", I have to logon again.
    Is there a way to get around this popup?
    Cheers,
    Jacob Vennervald

    Hi Jacob,
    Go To RSA1---> Transport connection view
    In the menu Edit -
    >Transport----->Switch-off Standard.
    Now try opening Query Designer.
    Hope it helps!
    Best regards,
    Saurabh

  • Forced to login twice

    Recently I've been experiencing a weird issue with my macbook pro, and i'm not too sure what the first point of call should be to troubleshoot. Every time I log into my machine (macbook pro), it will without fail get me to log on twice. Basically it works as follows:
    1) Boot up machine and it takes me to login screen (there are 2 user accouts on the mac)
    2) Put in credentials - here it processes something for a while before my machine reboots
    3) Takes me back to login screen without any acknowledgement of what happened
    4) Login again and it takes me into my profile fine
    I'm currently on Lion 10.7.2

    UPDATE: I just heard back from PayPal, very quick response to my email actually (although when you first send it via the automated system, it emails you with a generic password issues email and you have to respond to that to get an actual human). But once I sent the second email, I got a very fast response. Here's my original email to PayPal: >>>My issue is that just in the last few weeks, I have to log in twice. The login on the PayPal home page won't accept my login like it used to, it always now sends me to a secondary login page where it says it needs more information from me. That login usually works, then takes me to the PayPal Verisign ID number entry page.     So I have to enter my username and password twice, which is bothersome because I use a long password.     It never used to do this before, I could always log in from the PayPal home page.  So something has changed in your system, or it's a bug?     There's a growing discussion about this problem in the PayPal Community, so I’m not the only one facing the problem:  https://www.paypal-community.com/t#/About-Business/I-m-being-forced-to-login-twice-every-time-from-every-device/td-p/######  >>> And here's the response from PayPal: >>>Thank you for contacting PayPal Customer Support. My name is ____ and I am happy to assist you with logging in.
    I do have a known issue about you having to log in multiple times. I have added your account to the ticket #141113-000212. In the mean time I would try and delete your cache and cookies or try a different internet browser to see if the same issue occurs. If it does still occur please know we are working to resolve the issue. Please let me know if you need further assistance.>>> I tried deleting the cache and cookies (Chrome) and trying another browser (Firefox) that I have set to never save cookies or cache but I still get the same multiple login request.  So here's hoping they get it fixed soon, the good news is they're working on it.

  • All secure websites ask for login twice

    I have banking, paypal, google, yahoo, Amazon, Netflix all say the first time I login that the user name or password is wrong and when I enter the same user name and same password the second time it logs on. Sounds like a key logger. Win 7 64, most current Firefox, fairly new win 7 install, new computer, New router Netgear 6300, Vipre Internet Security. This all just started on Wednesday.

    A client-side keylogger isn't going to make you type everything twice. But a DNS hijacker might. Have you already changed those passwords?
    Please check your connection setting here:
    "3-bar" menu button (or Tools menu) > Options > Advanced > Network mini-tab > "Settings" button
    The default of "Use system proxy settings" will piggyback on your Windows/IE "LAN" settings. You could try "No proxy" to see whether that makes any difference.
    Your system-level DNS servers can be discovered using a command prompt.
    Start menu > search box, type '''cmd.exe''' and press Enter
    At the prompt, type '''nslookup mozilla''.''org''' and press Enter
    Windows should report your current DNS server by name and address, as well the info for mozilla.org. For example:
    Server: cdns01.comcast.net
    Address: 75.75.75.75
    Non-authoritative answer:
    Name: mozilla.org
    Addresses: 2620:101:8008:5::2:1
    63.245.215.20
    If the server is not the one you normally associate with your internet service provider, or one you set up manually (e.g., for OpenDNS or Google Public DNS), then that would be suspicious. Note that DNS can be set in Windows and/or in your router.

  • J_security_check error 404 login twice.

    Hi, i encountered a problem with authentication based on form and containter. I have a login.xhtml (later mapped to login.jsf) page that contains:
    <form action="j_security_check" method="post">
                            <div style="clear: both">
                                User:
                                <input type="text" name="j_username" size="25" class="textfield" tabindex="1"></input>
                                <input type="reset" value="Reset" class="button" tabindex="4"></input>
                            </div>
                            <div style="clear: both">
                                Password:
                                <input type="password" size="25" name="j_password" class="textfield" tabindex="2"></input>
                                <input type="submit" value="Submit" class="button" tabindex="3"></input>
                            </div>
                        </form>The authorisation is based on LDAP. The problem is when i open this login page in two separate tabs in the same browser. I log in to restricted page in the first tab, everything is ok. But when i try to log in in the second tab while still being logged in the first tab, i get error 404 service not available. Any ideas how to deal with such situation?

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    what do you get when you enter in an invalid username/password - your logonError.jsp? page
    How do you access this page - is your destination page available, and working?
    I take it you are trying to access /RnsttHome.jsp
    Check the spelling of your URL - maybe try accessing another file under securlty to see if that one works?
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    -- It doesn't really matter whether I enter a correct username/password or an invalid one, cause I get the 404 Error. I am not re-directed to the logonError.jsp at all. I can only see that the browser is looking for J_security_check...at least that's what is written on the url when I get the 404 error.
    e.g.
    http://localhost/myapplication/j_security_check
    -- The destination page is RnsttHone.jsp and it is working fine.I don't think that this is the problem.
    -- I have tried accessing other files as well.That's not the problem.They all have the same problem with j_security_check...
    Arapakis Giannis

  • How to restrict a user to login twice

    hei evryone!
    Here's my prob... I need to restrict a user to login more than once meaning, if a certain user account is currently login , that account cannot be used concurrently using another window or machine... If another user attempts to login, using that same account an error message will be displayed saying "this user account is already logged in".. i tried to do this in javascript but the code that i've got only works for IE and its kinda hard to capture the event for closing window.. plus using onunload is not advisable with my situation since my webpage can be redirected to other codes meaning the cause of unloading the page could either be closing the browser or redirecting the window to another page such as window.location="anothercode.jsp";... I was wondering if there's a way to do this in jsp...
    Any suggestions, ideas, or sample codes would be deeply appreciated. Thanks in advance!
    btw, i need to generate a code that is cross browser.. What i really need to accomplish is to be able to determine when the browser is closed either by clicking the X button on the window, alt f4 or my own close button and not when the page is unloaded.
    Here's a sample code : This only works in IE =(
    ---------- default.jsp-------------------------
    <html>
    <head>
    <script language="Javascript">
         onunload=function(e) {      
         winX = navigator.appName=="Microsoft Internet Explorer" ? window.event.clientX : e.screenX;
         winY =navigator.appName=="Microsoft Internet Explorer" ? window.event.clientY :e.screenY;
    if (winX<0 && winY<0)
              // redirect to logout.jsp n do some stuff
    </script>
    </head>
    <body>
    Logout
    List
    View Schedules
    </body>
    </html>
    the default screen would be the code above: "default.jsp" wherein there are many ways that the page
    can be unloaded such as :
    - clicking the logout link
    - click the View Schedules
    - click the x button the left side of the window
    - alt f4
    - if the window is minimized , right click then select close option
    Now, what i needed to do is to determined when the browser is closed so i reset the login flag of the account and can be used later on.

    hei everyone!
    im tryin to resolve this prob by adding a session id field on the users table. Everytime a user logs in i will update the session id field so that if anyone attempts to use the same account i will redirect the later into the login page with a warning msg. I'll do this by comparing the session id that u got from the dbase and the session id from request.getSessionId() of the browser. However, my prolem now is how to cleanup my database.. i need the cleanup coz i have a user tracking screen wherein i cud show who's account are login n who's not. I have created an applet and embed it in all of jsp files so that i cud catch the event for closing window whether by using the x button of the window or a power intrerruption. However, i need to find a way where i cud determine whether the event was really a close window or just a redirection from another page. I mean , you could leave the page either by viewing another screen or by actually closing the window.. For instance, my main page has main menu which are (1) View Users and (2) View Schedule .By default, im in the "View Users" screen . These two menus have their corresponding jsp n both jsp files have an embeded applet. So if the user click the "View Schedules " screen or if the user chooses to click the logout button or window's x button to exit the browser, then the applet will call the stop method. This what i meant by how will i determine if the user really exits on my application or not.. Coz if the user clicks from one screen to another then, user actually does not leave my application the user only exit on my application if the user logs out or close the window..
    Please help me out on this matter... Thanks in advance!

  • Why do we have to login twice?

    When I go to the OTN site, it automatically recognizes me and logs me on. :)
    Then, when I go to forums on the OTN site, it immediately forgets who I am and I have to login. :( I'm on a slow internet connection which makes unnecessary page loads particularly annoying.
    What's the point of having a single sign-on if I have to use it multiple times. :)

    It's not the forums remembering who you are, it's the OTN website itself - I've noticed the same behaviour, and I've always put it down to the forums being on a separate authentication thingy-wotsit to the rest of the OTN site. Annoying as anything, but I don't think it'll change any time soon *{:-(                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Yosemite login twice

    Since I upgraded to Yosemite I have to log in 2 times, especially after I wake up my computer after a sleeping time.
    A first screen ask me to log in, in the background I see Yosemite original Wallpaper flouted.
    Then a second screen appears and ask me to Log in again, this time I see my desktop wallpaper flouted (I customized it)
    Strange isn't it ?
    Could it be a kind of trojan ? Or is it a Yosemite bug ? How to solve this ?

    The reason why this happens is because in settings you selected "Require password after sleep". What this means is that you need a password to wake up the Mac and then you need a password to to re-login.
    It does not matter if you are using the same login details, you have to double authenticate. This usually happens after the computer has been left in sleep mode for some time. The first screen is a grey scale followed by the full color login screen with all users displayed.
    I hope this answers your question.

  • Should login twice in LV ?

    Sometimes Labview Showing some silly mistakes like this ! 
    Solved!
    Go to Solution.

    This is not a LabVIEW problem, but a website problem.
    the forum is hosted on an entirely different server on lithium. If you now press login in the forum, it will log you in immediately, without you having to re-enter the password.
    LabVIEW Champion . Do more with less code and in less time .

  • Prevent Login Twice

    All,
    I'm tryinig to think of a way to prevent a person from logging into an application more than once at the same time. IE, the user logs into and application, then turns around to a different computer and attempts to login there. I wish to prevent that second login. At the moment, I can't think of a way to prevent that since each session gets a new session id.
    Any thoughts are appreciated!

    Hello,
    In theory...easy.
    In practice...incredibly difficult to do successfully (i.e. almost every way can be circumvented).
    There are two solutions to this that I'd recommend if you really want to go down this route. Neither of them is APEX specific really -
    1) Use client-side certificates. This will install an SSL certificate on the users computer, this will force a user into using a single machine to connect to your site. Obviously this has limitations (if their machine dies then they can't login from another machine). However it does work and lots of sites use this method (my online Bank used to use this method).
    2) Use hardware. In other words issue your users with a hardware-key, such as the RSA key devices which they need to use to generate a one-time (time and key specific) code which they need to enter to login to the website. The advantage of this is that they can use the hardware device from different machines, it makes 'sharing' of the code much more difficult (the key cannot be physically shared easily, however it could be bypassed by reading out the code over the phone etc).
    So, there are a couple of options if you really want to do this, however it's very much an effort/reward scenario, in other words you can spend a huge amount of effort trying to stop people from logging in more than once, but is that effort worthwhile in terms of what you're trying to protect (only you can decide that).
    There are a few other methods I haven't mentioned (I'm sure other people will chime in), however it's definitely an area fraught with potential problems really.
    John.
    http://jes.blogs.shellprompt.net

  • Login twice upon startup?

    Hello All,
    I recently upgraded to Yosemite from Mavericks. I have a login screen where I enter my password. This is normal. But, now after the first login, the progress bar loads and then I'm presented with a second login screen. It looks exactly the same as the first, but now I can see my desktop picture in the faded background instead of the light gray of the first login screen. I repeat the same click on my user icon and enter my password and then I'm in. Finally.
    When I noticed this change:
    When I upgraded to Yosemite from Mavericks, all was well and good except that my social widgets on the right sidebar were not showing up. I read a forum that suggested to refresh the UUID under "Users & Groups" System Preferences. After I refreshed and restarted, I noticed that this double login screen issue showed up. Has this happened to anyone else and do you have a solution? Thanks!!

    I have filewault turned on, but everytime I have to login, typical from standby, there's a black screen with an apple logo (no progression bar) for a few seconds. Then i come to my login screen. Here i type my password, and the login screen pops up again, like the first login screen sits on top like another layer. That led me to wondering if i could have somekind of malware on my mac.
    Does anyone have the same issue, and most importantly, what caused it? Because there should only be a single login screen, right?

  • Why is Mountain Lion requiring login twice from sleep?

    I am running Mountain Lion (10.8.2) on an Early 2011 MacBook Pro. I have it set to require a password when left too long or asleep.
    Frequently, after I enter my password and get logged in, it bumps me back to the login page after about 5 seconds. I'm able to work for those few seconds, but then everything goes back to the locked out screen. After I enter my password a second time, it always works. The work I did in those few seconds is still on the screen (new pages, text typed, etc).
    This started happening after the upgrade to 10.8.
    Thanks,
    J

    I've been running into this error as well, no external display, but I'm running an MBP 4,1 17in.
    I've chalked this up to old preferences that weren't properly updated, the screen lock was automatically enabled by mountain lion, wheras prior to install, my 10.7 install did not have this enabled.
    I haven't had a chance to check this with a fresh install yet.

  • After installing Lion, my iMac Intel is very slow and need to login twice.

    Tried downioading another copy of Lion to reinstall, but I get an error message stating it cannot continue.  Has anyone had this problem before?  Thanks.

    hopefully this is what you need: 
    Mar 13 23:53:53 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Finished operation queue
    Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ->T+[DMToolBootPreference getPartitionBootability:]: inUDS=0x10ddd3c30=disk2s3=Mac OS X Install ESD
    Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootable=1            (bootable right now without any further action)
    Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootCapable=0         (bootable if you call MKCFPrepareBootDevice)
    Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootSurgeryRequired=0 (for primitive MBR on BIOS, add boot block and loader)
    Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMFSSurgeryRequired=0   (for primitive MBR on BIOS, add boot block and loader)
    Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMNewfsRequired=1       (bootable with MKCFPrep but it will rudely carve)
    Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM <-T+[DMToolBootPreference getPartitionBootability:]: MKerr=0 out=12=0xc
    Mar 13 23:54:29 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Extracting files from /Applications/Install Mac OS X Lion.app/Contents/SharedSupport/InstallESD.dmg
    Mar 13 23:54:30 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Failed to write imgsrc info to nvram
    Mar 13 23:54:30 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Extracting Boot Bits from Outer DMG:
    Mar 13 23:54:31 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Copied kernelcache
    Mar 13 23:54:31 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Copied Boot.efi
    Mar 13 23:54:31 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Ejecting disk image
    Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Generating the com.apple.Boot.plist file
    Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Linking self-contained dmg into mutable product
    Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: com.apple.Boot.plist: {
                  "Kernel Cache" = "/Mac OS X Install Data/kernelcache";
                  "Kernel Flags" = "container-dmg=file:///Mac%20OS%20X%20Install%20Data/InstallESD.dmg root-dmg=file:///BaseSystem.dmg";
    Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Done generating the com.apple.Boot.plist file
    Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Blessing / -- /Mac OS X Install Data
    Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac InstallAssistantTool[527]: Couldn't bless the installation disk: /
    Mar 13 23:55:10 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Failed to remove mutable product /Mac OS X Install Data

Maybe you are looking for