How to avoid one active session for the same user account concurrently

Hi all ,
i am using model 1 architecture in my application.
in my application ,if one user login through 2 browser at a time ,he can do it.
But now ,i want to close first browser or redirect him to a exception page.
plz guide me how can i do it.
plz include case1.
what happen if he close page ,not logoff
case2
what happen if power cut happen on client side.

+You can use a column in the table to check the current user logged in status. Once the user gets logged in the application change the flag at the backend. In this way you can know whether the user is already logged in the apllication or not, and based on this you can show a proper message to the user.+
+If the user closes the browser window without logging off the application, then in this case you can use the session Listoners.+
Well not the right approach Listeners would it for you.For browser closure problem.If user does that automatically container destroys the session object as per configured session-timeout.
*@OP*
Problem 1:
Try to a write an implementation of sessionListener / sessionAttributeListener (for having a check on user loggins and apply a global filter which checks available users who have already logged in)
Hope the below thread might give you some idea of how to go about.
http://forum.java.sun.com/thread.jspa?threadID=5226527&messageID=9922478
Problem 2:
consequently configure session-timeout parameter in minutes under web.xml for session browser close and inactivity state problems.
REGARDS,
RaHuL

Similar Messages

  • Imp: new session for the same user if  idle for 4 mins. or else throw error

    Dear All,
    I have a requirement where for security reasons if a session remains idle for 4 mins. or more, it should redirect to login page. This is easy as there is a feature in apex itself under security in application properties. This works fine.
    But I also don't want the users to start two active parallel sessions for the same user, and allow user to login only if the session for the user is idle for 4mins. or more or else display error message that the user has already logged.
    A second in sequence, on submit process for this in page 101 when login button is hit is written for this. It is as follows:
    declare
    found boolean := false;
    begin
    for x in (SELECT a.apex_user from apex_workspace_activity_log a,apex_workspace_sessions b, (SELECT max(view_date) as maxdate FROM apex_workspace_activity_log where upper(apex_user)=upper(:P101_USERNAME) and APPLICATION_ID=120) maxresults, (SELECT max(session_created) as maxcreate FROM apex_workspace_sessions where upper(user_name)=upper(:P101_USERNAME)) maxsession where b.session_created=maxsession.maxcreate AND b.APEX_SESSION_ID!=:SESSION and upper(b.user_name)=upper(:P101_USERNAME) and b.APEX_SESSION_ID=a.APEX_SESSION_ID and a.seconds_ago<240 AND a.APPLICATION_ID=120 and a.view_date=maxresults.maxdate and rownum=1) loop
    found:=true;
    raise_application_error(-20000, 'Already Logged.');
    exit;
    end loop;
    IF not found THEN
    null;
    END IF;
    end;
    But for some this reason this does not work as intended. Two users can login parallely.
    When I trace the program, I see that it should catch the parallel user login. But it does not.
    Is it some db cache issue? I don't know.
    Kindly let me know how to fix this. It is crucial for us to achieve this.
    Thanking in advance.
    Regards,
    Deepika.

    Dear Fateh,
    Thanks for the reply.
    The features of this plugin are:
    Configurable timeout actions including alert, redirect, and logout
    Optional and configurable warning message
    Option to keep session alive if user isn’t truly idle. Special thanks to Martin D’Souza for a great idea on how to implement this feature.
    But it cannot stop a new session for a user, if there is an active (in my definition apex_workspace_activity_log.seconds_ago<240) session already running for that user.
    Regards,
    Deepika.

  • Multiple sessions for the same user

    Hi,
    The scenario is like this. The user is logged into the system using JAAS and
    has a session object created. I want to create a new session for the same user
    with the already available credentials. This is to provide the same user the access
    to the application in another window with different session object. How can do
    that in Weblogic 8.1 server ?
    thanks in advance,
    Krishna.

    Hi
    I think it would be easier to enable session time out settings using GPO considering you work in a domain environment..
    Having session timeouts settings you could say... hey after 15 min of inactivity disconnect the user and then after 15 min of disconnected session log him off
    Take a look at this URL: http://technet.microsoft.com/en-us/library/cc754272.aspx
    Hope this helps
    Best regards
    Joaquin Camarero Muñoz

  • Is there a way to disable concurrent Weblogic Admin Console sessions for the same user?

    A coworker on another workstation and I are able to log into same user account on the Weblogic Admin Console at the same time. I would like to restrict access so only one session per user account can be logged in to the Admin Console. Is this possible?
    Alternatively, is there a way to log identifiable information (IP/workstation) when multiple sessions for one account occur at the same time?
    I am using 10.3.6.0

    Hi,
    You could also check the http access logs for such info. There you could see records for the received requests, with each record starting with the source IP that initiated the request.
    The default location for access logs is ${DOMAIN_HOME}/servers/${SERVER_NAME}/logs. Of course in your case, the ${SERVER_NAME} would be your admin server name (AdminServer if left as default).
    Regards,
    Mohab

  • How to avoid multiple session for the same username

    I need suggestions on implementing single user login , like My system has a user with a username jdavid and my application should not allow two different sessions for the same username jdavid , can one session peep into all other session
    to see if the any has a usernaem jdavid, I am basically looking for some pattern if any available for restricting multiple session for the same username . like jaas or any other security api provides this ?

    Store a Map<User, HttpSession> in application scope and let your application intercept on that. On login, just check if the User is already there, then get the associated HttpSession, invalidate it and replace it by the current HttpSession, else just store the current User-HttpSession pair in the map. On logout obviously remove the User-HttpSession pair from the map.

  • How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts if changes on all computers.

    How can I uniquely identify computers on the same network/account specifically for airdrop use?  When I change name on one computer under contacts it changes on all computers.  I would like to change icon and name for each computer.

    you would need to setup a VPN and tunnel into your office.
    FYI..the default ports are 3283 and 5900.

  • How to create multi garnishment order for the same garnishment document

    Hi,
    Can anyone tell me how to create multi garnishment order for the same garnishment document. I tried to copy the entry in IT0195 but the sequence field is grayed out so it will just delete the old record. What configuration should I do to make this possible?
    Thanks a lot in advance.

    hi,
    As far as I got it.
    You cannot have multiple Garnishment order but if a need arises you have to maintain it in IT216.
    For that follow this path goto PA30->pernr->194->change->Garnishment->adjustment.
    Since like order you cannot maintain adjustment also directly.
    Regards,
    Amit
    Reward all helpful replies.

  • In AppStore.app for some reason when I try to update my apps, it asks for the wrong user account than the one that I am logged in with. This makes me unable to update my apps

    In AppStore.app for some reason when I try to update my apps, it asks for the wrong user account than the one that I am logged in with. This makes me unable to update my apps

    You would have downloaded those apps with the wrong Apple ID then created a new Apple ID which is the on you are on now. This is acting as normal because all content downloaded from the iTunes and App Store is attached to the Apple ID it was downloaded with. To stop this you would delete the apps and redownload them with your current Apple ID you are signed in with.

  • Enter more than one personnel number for the same confirmation in CO11N

    More than one labor working on Machine work center simultaneously.
    So that during production orders confirmation in CO11N we need to enter more than one personnel number for the same confirmation but in CO11N the system allow me to enter only one personnel number.
    Note: I can not distinguish between the productions for each labor so that I can not enter separate confirmation for each labor.

    Hi,
    You can use the User Exit: CONFPP07  Single Screen Entry: Inclusion of User-Defined Subscreens
    for this purpose..
    Take help from the ABAPer for this enhancement..
    Regards,
    Siva

  • Hi experts, how i can make confirmed quantity for the same day ???

    Hi experts, how i can make confirmed quantity for the same day ???
    regards,
    uday

    Hi Joao/ Phani,
    I have created a sales order in my IDES system with VA01 today and the delivery dates is confirmed for tomorrow ie 21st.
    My Question is how can i change the confirmed delivery date for the same day ???

  • C;\Windows default share session increased for the same user

    in win 2k8 server I seem some strange things, that for the same user, shared folder sessions are increasing. Support is appreciated
    Regards Prabhu

    It might be connecting from multiple devices.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • How to create  an alternative bom for the same product

    Hi expert,
       I want to know how to create an alternative bom for the same product. Can i use the different bom usage to create or use the same bom usage? In addition, how can i use the production version to link the alternative bom for the same product?
    Please help me solve the problem.
    Thanks in advance for any assistance.
    George shi

    HI
    you can go with t-code CS01
    if you have the BOM already and you want to create the alternative BOM then just goto create BOM
    and enter the material and plant and uasge system will auto matically prapose the next numner ie, if you have Alt BOM1
    then next system will prappose 2.
    then you can enter the components as per you requirement
    if you go to different BOM usage then sytem will not go for alternative BOM it gives again alt bom 1.
    prodcution version you need to craet from mateial master
    each version you can go woith alternative BOMS
    Version 1 will have alt BOM1
    Version 2 can haev ALT BOM2
    -ashok

  • Can I use the same user accounts for both Lion & SL?

    I have one Mac that I can upgrade to Lion but it is the one that the entire family uses every day (I only can use it (and administer it) on weekends), so I have to make sure that there are no problems and no issues so my plan is to:
    Move all of the users accounts to a different drive.
    Configure 10.6.8 (SL) to use the user accounts on the different drive.
    Back up SL to a bootable drive.
    Repartition the Mac for a SL & Lion partition.
    Reconstitute SL on both partitions.
    Upgrade one SL partition to Lion.
    I should now have a partition for SL and Lion that both use the same users accounts so when I (and then my family) are comfortable with Lion, the switch will be transparent.
    Any problems that I am unaware of (and how to remediate it)?
    TIA.

    There are a few discussions here on the topic that I was planning to employ:
    Moving Home folder to different HDD From Mac OSX Snow Leopard via Terminal?
    Moving some Users to different volume
    How do you move a user account to a different drive?
    Another way of doing it is to move the directory, and then alter the user's home directory using the NetInfo utility (Tiger) or Directory Utility (Leopard). In both, you can change the user's home directory from the command line in Terminal.app like so:
    $ sudo dscl . -create /Users/user NFSHomeDirectory /Volumes/volname+/+user
    In the SL System Preferences -> Accounts one can select a user's account, right click and choose Advance Options presents the screen below. This is how I intend to point each OS to the same user account on an external HDD.
    Does that answer your question?
    TIA.

  • Auth: Restrict Infoobject for Queries differently for the same user

    Hi guys,
    I need to restrict an infoobject differently for some queries (analysis authorization). For example, I need to give full hierarchie access for query 1 to user 1.  But for another query for the same user I need to restrict the hierarchie authorization. Furthermore, both queries are based on the same multi provider. It is not possible to use different multi provider ... the adjustment effort is to high (to many queries).
    I have set up an authorization with rsecadmin
    QUERY1:
    ZHier1     Hyrarchie 1
    ZHier2     Hyrarchie 2
    0TCAACTVT     Activity in Analysis Authorizations
    0TCAIPROV     Authorizations for InfoProvider
    0TCAVALID     Validity of an Authorization
    0TCTQUERY     Query
    -->I added the respective values for the queries, the used multiprovider, hierarchies, etc.
    I have set up the same for QUERY 2 with different Hierarchy and Query values, but it does not work correctly. The user is always authorized for the hierarchie values of both queries.
    Thanks foryour helpin advance!!
    Regards,
    Sven

    Hi Sankar,
    Sorry for the confusion. Lets focus only one hierarchy ... ZHier1. 
    QUERY1:
    ZHier1     -> value: node2
    0TCAACTVT     -> value: 2 & 3
    0TCAIPROV -> value: multiprovider1
    0TCAVALID     -> value: *
    0TCTQUERY     -> value: query1 (based on multiprovider1)
    QUERY2:
    ZHier1     -> value: node2.1 (sub node of node 2)
    0TCAACTVT     -> value: 2 & 3
    0TCAIPROV -> value: multiprovider1
    0TCAVALID     -> value: *
    0TCTQUERY     -> value: query2 (based on multiprovider1)
    But this does not work. When I use query2 in reports the user has access to node2 and not only to node2.1.
    Any idea?
    Thanks again!
    Sven

  • Balance Display are different for the same GL account in FS10N & FAGLB03

    Hi,
    It was noted that the GL account Balance Display are different for the same GL account in FS10N & FAGLB03.
    Please advice what would have cause the matter.
    Thank you,
    Regards,

    Hi Vani,
    Think you are using version 6.0.
    I had observed that TCode FAGLB03, displayes balances for particular Ledger (0L) leading by default.
    While in FS10N there is no option for selecting ledger.
    Try FAGLB03 with all ledgers one by one.
    Add the total and then try to matc wiht FS10N.
    Assign points of Good.
    thanks

Maybe you are looking for

  • G4 Flat-panel No Longer stays up!?!  What the heck?

    Can anyone advise on how to repair my G4 flat panel? The screen no longer wants to stay up. It continues to fall as though there is no spring or resistance. I've attempted to look this issue up so as not to repeat a question, but I can't find anythin

  • Multivalue LDAP attrinute

    HI I have a multivalue LDAP attribute named changedate Each time I have to update it I need it to be updateedlikethis changedate-ddmmyy creation changedate-ddmmyy termination but this is not happening and the attribute value is overwritten I have set

  • Multiple PERNR / PERSON ID Concept against MSS Scenario

    I have a question from a portal perspective in retrospec with the whole Global Assignment functionality. You and I know the Manager is able to view his/her employee via their PERNR. In situation where you activate global assignment, a person may have

  • EJB JAR Versioning

    I am using jdk version 1.3.1_02. How I can know which version of EJB JAR I need to use (1.1, 2.0, 2.1) sam for JTA JAR file. I looked in the JAR's documents and I couldn't find a word about versioning comptability. Thank you.

  • EOS 7D Mark II Raw not open at LR5!

    Hi, sorry my english is not so good. I have pay a new Canon Eos 7D Mark ii. But LR5 have a Problem! She can not open the new Raw from my Camera. Please help me. When you write me in German was better for me. Thanks