How to disable multiple users logging

hi
I posted a question earlier and googled the same question but found no fruitfull solutions.
http://forum.java.sun.com/thread.jspa?threadID=748292
Rather than solving the problem i am looking for a way around it. Is it possible to Allow just one user to login to the website from one PC?
lets say user opens two windows and both have login page of the website. If user logs in from window1 and tries to login again from window2 (even with same username) the error page displays the message. How would this be possible?
I do something like this but this doesnt work
       HttpSession userSession = request.getSession(false);
       if(userSession!=null) {
               System.out.println("Entered here");
       userSession.invalidate();
       userSession = request.getSession(true);thanks

Thanks for the info. I really thought that this would be a fixable problem. I also thought that it might work when two different users both logged in using ssh only (i.e. when there is no console login). But this also causes problems for the second ssh login.
What practical work-arounds have people tried? The respondent to your other post (linked to above) suggested that NFS sharing might work, only that ssh logins still don't mount the home directory. Is this the case?
Thanks for the speedy answer.
Keith

Similar Messages

  • How to enable multiple users logging in to the same client machine?

    Hi,
    We have our home directories shared from the server (using AFP) and this allows our users to log in to any machine via the normal console login.
    But if you try to remotely login to a machine with ssh, and another user is already logged in at the machine, then you get the error message:
    Could not chdir to home directory /Network/Servers/machinename/Users/keith: No such file or directory
    I can connect (via) ssh, only if no user is logged in at the console. If I connect with ssh when no users are logged in, and then a user logs in at the console, then this unmounts the home directory for the ssh user.
    I have read about the mnthome command, and if I try running this (from my ssh login whilst there is a console login) then I get the error message:
    Error: Mount failed with error 1 Operation not permitted
    I'm assuming that multiple ssh logins must be allowed somehow? Can you only do this if you share your home directories with NFS (in this case, I understand that all home directories always appear mounted on each client)???
    Any help appreciated,
    Keith
    Server and all clients running 10.4.3
    iBook & PowerMac G5   Mac OS X (10.4.3)  

    Thanks for the info. I really thought that this would be a fixable problem. I also thought that it might work when two different users both logged in using ssh only (i.e. when there is no console login). But this also causes problems for the second ssh login.
    What practical work-arounds have people tried? The respondent to your other post (linked to above) suggested that NFS sharing might work, only that ssh logins still don't mount the home directory. Is this the case?
    Thanks for the speedy answer.
    Keith

  • Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to.

    Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to. 
    I'm NOT in any way a Terminal Services expert and I need help trying to get an application program working in a multi-user environment.
    The issue is that the printer changes for every user that is logged in. The application needs to print NOT to the default printer, but to a "special" printer which is selected in the application... let's call it a label printer to simplify the explanation.
    You have your default regular printer, easy for the application to find that one, and then you have a special printer that labels get printed onto. The application needs to know what printer is the label printer. So we allow the user to select that in the
    application and the selection is stored in a config file in 
    C:\ProgramData\mfgr\prog\setting files
    I don't have access to the application so I can't change how this works.  
    In the "regular" world, selecting the label printer driver to use should be per machine, NOT per user. When a new user logs into a machine, the physical printer doesn't go "poof" and a new printer suddenly appear. Same printer for all
    users.
    Yet in terminal services, the physical machine is "merged" with the virtual machine on the server. And there can be many users logged in at the same time. So each users real machine (and real printer) is injected into the "fake" terminal
    services machine. The name of the printers is made unique for each user. So the printers DO go "poof" and change names depending on the user logged into terminal services.
    So user "A" logs in and sets up the application to print to "LabelPrinterForUserA" (or whatever the name of the printer happens to be), that setting is stored in the ProgramData subfolder, and all is well. Later, user "B" logs
    in, and when they print, the application tries to print to "LabelPrinterForUserA" which doesn't exist for user B or is only accessible by user A. If user B re-configures, that breaks it for user A. 
    SOLUTION 1: The way that /should/ work (in my mind) is that you define one "generic" printer in Terminal Services... call it "Virtual Label printer" and when the user wants to print to it, the print job gets re-directed back to whatever
    physical printer is actually connected to their local workstation. There is a map of virtual printer to actual printer depending on the current user. The application is told once to print to "Virtual Label Printer" for all users.
    SOLUTION 2: Or... there should be some way to make the ProgramData sub folders separate per user. E.g. when user "A" tries to access:
    C:\ProgramData\mfgr\prog\setting files
    they actually get 
    C:\UserData\UserA\AppData\mfgr\prog\setting files
    and user "B" gets
    C:\UserData\UserB\AppData\mfgr\prog\setting files
    So the question I have is: Does either of those solutions exist hidden somewhere in the setup of terminal server? Or is there another way around this issue that I don't know?

    I don't really have a "for sure" answer to this, but because people here can't seem to deal with a question that hasn't been answered I'll provide the best answer I did receive from ServerFault.com user Nathan:
    I can feel your pain with using old software on terminal servers ...the solution I've come up with definitely won't scale as it requires some manual configuration, but I've gotten this method to work with our label printers (which require to be
    printed to an LPT port...yep, that old).
    Share your USB-connected printers to the network on each machine. Then, have the user log in on aunique session for each of them
    (a TS account cannot be shared among computers for this to work) and install a network printer pointing to the USB one they shared. Try to use a DNS name to account for possible DHCP movements.
    After, it should work. Each user can do this since display names can be identical as long as the ports are different (which they are).
    This was clarified by the following series of comments:
    I think you are on to something here, and I originally advised the admin to do this. The problem he ran into is that it setup the printer names in the TS as "printer on usersworkstation"
    and he could not rename it except to change the "printer" to whatever. E.g. the "on userworkstation" remained. I believe there is another way of installing the printer which avoids this, but I can't find it. Ages ago, one used to do NET
    USE LPT2 \\computer\printer password /USER:domain\user /PERSISTENT:YES and then tell the driver to print to LPT2 –  James
    Newton Mar
    17 at 16:21   
    @JamesNewton That's actually the exact method we used. The way around the "network printer" part is to install it as local printer and map it to a TCP/IP port that way. –  Nathan
    C Mar
    17 at 16:28
    You mean in the case where the printers are TCP/IP connected and not local USB / LPT to the users workstation? That makes sense. Wonder if this will work for USB connected printers... –  James
    NewtonMar
    17 at 16:35   
    @JamesNewton You'd share the local printer on the client's PC then on the server connect via TCP/IP to it. You'd need static addresses or use DNS names if DHCP, though. –  Nathan
    C Mar
    17 at 16:51
    Ah. Yes. I see. Looks like the LPT thing should work even with a USB connected printer:superuser.com/questions/182655/… –  James
    Newton Mar
    17 at 17:09   

  • How to show all user logged in/loggout in Report

    How to display All User Logged in time & Logout Time?
    Hi..
    I want to display All user in Portlet a report that show us all user that logged in the portal,
    their username,
    their time logged in,
    their time logged out..
    where can i find these information?
    do Portal have already something like this?
    Plz advise..Thanks.

    Thanks Sharmila for answering my question..
    Similar question i want to ask..
    I look at the table, and view it's data...
    Mmm..some i don't recognize...
    Actually, i just want to grep
    1)The UserId of the user who logged in the portal
    2)The time he logged in the portal
    3)the time he log out the portal
    That's all..
    How can i do that?..
    I plan to create one table to store the data, and plan to grab the data by jsp....
    What are the table/function/api that can i use and how?
    Plz advise.
    Thanks

  • How to lock multiple user for a transcation code at same time is der any tc

    how to lock multiple user for a transcation code at same time is der any tc
    suppose i hav 15 user and i want to lock 10 user for mm02 who can i to it

    Basis can do a export and import transport, still if don't have connection between boxes.
    or
    check this
    http://www.sap-basis-abap.com/abap/copy-program-variants-from-one-to-another.htm

  • How to add multiple users to a role in ECC 6.0

    How to add multiple users (say 1000) to a role in ECC 6.0?

    Hi
    You can actually add multiple users to a role using transaction SU01. From SU01, use the menu Environment->Mass Changes.
    Here you can manually add the users, select them by address or authorisation data. Once you have your user list, you can then add or remove roles and/or profiles.
    Secondly , You can use SU10 to do mass changes to multiple users including role assignments per logical systems
    Also check the following link:
    http://www.sap-img.com/bc021.htm
    I hope this should do it
    regards
    Chen

  • How to display All User Logged in time & Logout Time?

    How to display All User Logged in time & Logout Time?
    Hi..
    I want to display All user who logged in the portal,
    their username,
    their time logged in,
    their time logged out..
    where can i find these information?
    do Portal have already something like this?
    Plz advise..Thanks.

    The login information is in the wwlog_activity_log. The logout action is only logged when it is explicit. I am using the last user action time for the logout time so I can determine the duration of the visit.

  • How to disable other users from changing the status

    Hi,
    The status entry field can be changed irrespective of ownership in Documents.
    I was able to change the status on the document created by other user.
    Example: The status of document was In-Work. The document owner was X. But I was able to change it to Inspection Check.
    How to disable other users from changing the status?
    Regards,
    Shashi

    This is a frequently discussed topic.Please use the search feature.It has been discussed in [previous posts|CV01N: Filter documents by role; in various contexts.
    Regards,
    Pradeepkumar Haragoldavar

  • What's a ASPNET user and how to disable this user by CMD ?

    What's a ASPNET user and how to disable this user by CMD ?
    I found a user named ASPNET on my computer. For security reasons I need to disable this user.
    There are hundreds of computer in my company.
    How can I disable this user ? By CMD or Domain Controller ?
    Additionally , if I disable ASPNET user ,what will affects on Windows 7 and Windows XP ?
    Thank you !

    back before IIS 6 or 7(I forgot), this ASP.NET user run ASP.NET application. If you have above IIS 6 or 7 you can simply delete this account
    but first, just confirm there is no user using this account to develop ASP.NET in your environment
    you can also reinstall your .NET framework to remove this user account
    this is the details
    http://marksxp.mvps.org/WindowsXP/aspdot.php

  • How to find a how many times a User logged in

    Experts,
    Is there a way where in I can find How many times a User Logged in to the system over a period of time.
    FYI...,
    I have a search over the forum but could not get the relevant solution for this. Had a trial search on TCodes SM04, SM20, STAD etc but could not find exact one for this.
    Please let me know is there any way where I could get the details on the above query.
    Thanks in adavnce.
    Regards,
    SRinivas

    HI,
    i found this fm RSAU_READ_FILE for sm20 , but i am not sure how to use it.
    I just made a search for this function and i got thisa link
    Check the reply by FabioBC in which he explains the mapping of fields to this function
    link:[http://www.sapfans.com/forums/viewtopic.php?p=799746&highlight=&sid=e8dca9480a775847b26ab57493f27eb6]
    Edited by: Keshav.T on Dec 3, 2010 8:16 PM

  • How to disable the archive logs in SAP IDES(Windows) using SQL Server

    can any body tell us How to disable the archive logs in SAP IDES(Windows 2003) using SQL Server 2000.SP4.?

    Hi,
    Unfortunately, SQL Server does not have the option to turn off transaction logging. You can set the recovery mode to SIMPLE, instead of FULL. This will result in the transaction log being truncated on checkpoint.
    http://support.microsoft.com/kb/873235 - check this microsoft article
    This will help in reduction of the size of the transcation log.
    - Regards, Dibya

  • How can I get Firefox to run on a network with multiple users logging on with the same user name and password?

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

  • Disable Multiple User login for ITS

    Hi,
    The parameter “login/disable_multi_gui_login” Controls the deactivation of multiple dialog logons at GUI level only.
    Please let me know how to activate the same if the users are logging in thru Webgui (ITS 6.40 / 7.00).
    Thanks,
    Tanuj

    Hi Balaji,
    To disable multiple logins add parameter login/disable_multi_gui_login = 1 using RZ10
    Hope this help!
    Juan
    Please reward with points if helpful

  • How to manage multiple users/devices/Apple IDs on a single computer

    I got my 8 year old an iPad mini for Christmas and I'm about to set it up but I need some advice on using multiple IDs on one computer. I have an iPhone 4s. I assume I will need another Apple ID for the iPad mini so she can use Facetime. How do you manage two devices with different IDs on one computer? Will my movies and music be available for the iPad mini ID? What happens when I plug the iPad into my computer? Do my iPhone apps on my account disappear? Do I need to log out of my iTunes store account? Is their a danger in mixing the two accounts? I was told to be careful if you plug another iPhone into your computer because it can wipe your phone and replace it with another users info if you don't log out/in correctly. It's very confusing so if anyone could give me some advice on how to set this up and manage two IDs and devices on one computer it would be helpful. Thanks:)

    This should be of some help.
    How to use multiple iPhone, iPad, or iPod devices with one computer
    Your daughter is too young to have an Apple ID because the minimum age is 13 years old. You can use her email address for FaceTime and Messages. You add the address as the contact address when you activate both of those apps. But both apps will still have to be tied to your Apple ID.
    I was managing 5 different devices with one iTunes library and all devices had their own unique content on them. It is not that difficult to manage.
    there is lots and lots of information out there on how to do this. Check some of these out for more information.
    https://www.google.com/search?q=managing%20multiple%20devices%20with%20one%20iTu nes%20library
    This will help with FaceTime and Messages.
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • No sleep with multiple users logged in

    Hi there,
    In order to access multiple iTunes-Libraries from my apple TV (Main, Archive, Childrens) I have set up three useraccounts on my macMini each with its own iTunes Library. When booting up I log in to all three accounts and start iTunes.
    It all works well except sleep!
    When only one user (Main) is logged in sleep works normally. When the other users are logged in at the same time the mini stays awake even if there is no activity.
    Any suggestions how to fix this or how to share multiple Libraraies from one useraccount?
    Thank You for Your suggestions.
    Cenar

    Is it any one user or just Main that works correctly. If it is just Main, is there anything in the other users' login items that may be causing it to not sleep?
    You can try looking in the Console for messages about sleep. Type sleep into the search field and see if anything is preventing sleep.

Maybe you are looking for

  • G3 fails to respond to program disk(s)

    I have been operating between Classic 9.2.2 and OSX 10.1 with success for a long time. Attempted to install OSX 10.3 as this seemed to be the highest that one could install to get a large B/up USB drive running. Installation appeared to be successful

  • Tables in dba_objects view not present in dba_all_tables view

    I have found tables in view dba_objects (object_type='TABLE'), which I haven't found in dba_tables, or dba_all_tables views. What kind of tables are they? E.g. in mdsys schema: select object_name,object_type from dba_objects where owner='MDSYS' and o

  • Installing patch set 10.2.0.5 from 10.2.0.4

    Hi, My current environment is :- OS/ = Windows 2008 -x64bits DB=oracle 10g (10.2.0.4) SAP=Solution Manager 7.0 EHP1 I need to upgrade the oracle patch set from 10.2.0.4 to 10.2.0.5. The steps that I will take:- 1) Shutdown Solman, Shutdown oracle DB,

  • My ipad doesn't a software update option

    My iPad 2 doesn't't have a software update option under settings. I cannot update it to iOS 5.

  • Question about permissions repair, strange messages

    The following was the result from my recent repair after installing 10.5.1 Are these results normal with so much not being repaired? Warning: SUID file "usr/libexec/load_hdi" has been modified and will not be repaired. Warning: SUID file "System/Libr