How to get second session in second browser

I have got an B2B application that has 3 types of users - [System]Admin , Vendor & Clients.
In one of the use cases an 'Admin' user can launch a new window [browser] on behalf of client or a vendor and do whatever he wants . All the while, his ie. admin user's ID is maintained in the first browser.
The issue I am facing is when I open a new/second browser [on clicking of a link] on behalf of vendor /client, my admin user ID is getting replaced with Vendors/Client in the first browser as well. Mean to say, I am able to open a new browser, work on behalf of a client /vendor but when going bak to the first browser[admin's] user ID and other admin user related information is not available and are found to be replaced by the vendor/client information
FYI: User ID is fetched/maintained from Session.
Can anybody tell me how to create a seperate session for the second browser so that I can parallely work on behalf of my ownself[as a Admin user] and also on behalf of a Vendor/Client user on two different browsers.
Message was edited by:
Venkyt

Should i use target "new" instead "invoice"?Doesn't matter. Managing the sessions as I said it is the safest way IMO. From the first request, get the session ID, add it to a hidden input field and then go by that, instead of asking for a session ID that maybe has changed.
Or use a cookie, or simply continue working in the same window.

Similar Messages

  • How to get the location of the browser?(pt_BR, en_US, es_ES...)

    How to get the location of the browser?
    example: pt_BR, en_US, es_ES...

    Hi Eduardo Cordeiro,
    Sorry in reaching you late...I was out on a trip...
    You need to put the javascript in your Flex application html wrapper file ...in which your  Flex application SWF is embedded.
    Write the Javascript function in your html file as below :
    function getBrowserLanguage()
      var browserLanguage = navigator.browserLanguage;
      return browserLanguage;
    //In your mxml File you can access the JavaScript function in your MXML as below:
    var browserLang:String  = ExternalInterface.call('getBrowserType');
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • How to get HTTP session in Applcation Module IMPL file

    Hi Guys,
    Can any one tell me how to get HTTP session in Applcation Module IMPL file ?
    thnks

    You can, but that's not a best practice.
    Re: How to reach HttpContext from model Project

  • How to get transacted session in direct mode with jmsra adapter

    Hi,
    I use MQ 4.4u1 release with GF in EMBEDDED mode. I configured several connection factories with NoTransaction/LocalTransaction/XATransaction support. In my app I get a connection factory from JNDI tree, create connection/session/producer and send several messages to queue. Everything works fine when I don't use transactions. But, when I want to send messages in one transaction, the connection always provided to me non-transacted session. The session created via
    Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
    request. I check the session transacted state and acknowledge mode right after i get it:
    log.fine("Session: " + session + "; transacted: " + session.getTransacted() + "; ackMode: " + session.getAcknowledgeMode());
    The log shows me that the session is not transacted and ackMode is 0 (DUPS_OK_ACKNOWLEDGE). If I try to commit the session after messages were sent I get the correct exception:
    javax.jms.IllegalStateException: MQJMSRA_DS4001: commit():Illegal for a non-transacted Session:sessionId=3361979872663370240
    Does anyone know how to get transactional session in direct mode?
    Thanks, Denis.

    I mentioned LOCAL because I misread your post and thought you were suggesting that LOCAL mode behaved differently.
    If you want to send messages in a transaction from within a Servlet then I think you're expected to use a UserTransaction: Here's an example that worked for me:
            Connection connection = outboundConnectionFactory.createConnection();
            Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
            userTransaction.begin();
            MessageProducer producer = session.createProducer(outboundQueue);
            int numberOfMessages = 10;
            for (int i = 0; i<numberOfMessages; i++) {
                Message message = session.createTextMessage("Hello world");
                producer.send(message);
            userTransaction.commit();
            connection.close();I obtained the UserTransaction with this resource declaration:
        @Resource(name = "java:comp/UserTransaction")
        private UserTransaction userTransaction;The EJB spec explicitly states that local transactions aren't supported in EJBs; I haven't found such an explicit statement for Servlets but suspect that JMSRA is taking the same approach.
    As for imq.jmsra.direct.disableCM property - this appears to disable connection pooling and from your post changes other behaviour as well. How did you find out about it (other than by examining the code)? As far as I can see this is not a documented feature and is not necessarily tested or supported.

  • How to get the session name of a batch input

    hi everybody
    does anybody know how to get the session name of a batch input?
    I have to put the name of the session at the end of my program so that the user can click on the session name to go directly to SM35 to run the batch input when the program ends

    Hi sia,
    1. Table is APQI
    2. field name for session name is GROUPID
    regards,
    amit m.

  • How can i invalidate Session when a browser crashes?

    Hi
    How can i invalidate session when a browser window closed or crashed unexpectedly.
    If user closed the browser window using File->Close, then i'm calling javascript function .... and it is working fine. But when browser window is hanged and closed using ENDTASK, how can i kill that session.
    Please help
    Thanks
    -Vidyadhar

    Well you can't. Execution halts, so anything you would want to do is made impossible: that's why crashes are the #1 enemy of any software developer (that and impossible deadlines). The webserver will remove the session manually when it times out though.

  • How to get current time in seconds

    Can someone please tell me how to get the current time in seconds. I am currently doing as follows but not sure if its correct or best way:
    Calendar cal = new GregorianCalendar();
    long currentTimeInSeconds = cal.getTimeInMillis()/1000;

    vik1491 wrote:
    How about this:
    Date date = new Date();
    Format formatter = new SimpleDateFormat("HH:mm:ss");
    String s = formatter.format(date);
    String patternStr = "\\:";
    String[] fields = s.split(patternStr);
    int secondsSinceMidnight= Integer.parseInt(fields[0]) * 3600 + Integer.parseInt(fields[1]) * 60 + Integer.parseInt(fields[2]);
    What about the day what you switch between standard time and daylight savings time?

  • How to get full path in file browse item

    Hi
    I have a file item. When I submit the form and store and value in db, then the file path is stored as numbers and appended to the file name. I undestand that this is because of some wwv flow files index or something . How to get the file path? Anybody...

    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config can enable the path to be exposed in IE8, but I don't think it will be available via <tt>apex_application_files</tt>.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx

  • How to get the session variable value in JSF

    Hi
    This is Subbus, I'm new for JSF framewrok, i was set the session scope for my LoginBean in faces-config.xml file..
    <managed-bean-name>login</managed-bean-name>
    <managed-bean-class>LoginBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope> like that...
    So all parameter in LoginBean are set in session right ?... for example i used userId is the Parameter...
    Now i need to get the the userId parameter from that session in my another JSP page.. how i get that ?..
    Already i tried
    session.getAtrribute("userId");
    session.getValue("userId");
    but it retrieve only "null" value.. could u please help me.. it's very urgent one..
    By
    Subbus

    Where i use that..is it in jsp or backend bean...
    simply i use the following code in one backend bean and try to get the value from there bean in the front of jsp page...
    in LogoutBean inside
    public String getUserID()
         Object sessionAttribute = null;
         FacesContext facescontext=FacesContext.getCurrentInstance();
         ExternalContext externalcontext=facescontext.getExternalContext();
         Map sessionMap=externalcontext.getSessionMap();
         if(sessionMap != null)
         sessionAttribute = sessionMap.get("userId");
         System.out.println("Session value is...."+(String)sessionAttribute);
         return (String)sessionAttribute;
         return "fail";
    JSP Page
    <jsp:useBean id="logs" scope="session" class="logs.LogoutBean" />
    System.out.println("SS value is ...."+logs.getUserID());
    but again it retrieve only null value.. could u please tell me first how to set the session variable in JSF.. i did faces-config only.. is it correct or not..
    By
    Subbus

  • How to get apex session id to insert into a table....mimic of a global temp

    Hi,
    I want to mimic the beavior of a global temporary table by using a regular table and feed a column that will contain session id...but i don't get how to obtain the session id in APEX ?
    Any suggestion ?
    Regards.

    You can use the APP_SESSION variable.
    See:
    http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#BEIEHEJI

  • How to get an session BackingBean out of the FacesContext

    Hi,
    I want to make my appliction userdependent (each user only see's his own data).
    There fore I created a UserBackingBean with a session scope.
    An attribute of my other backingbeans is the User object. In my UserBackingBean I want to create a static method that returns the current user. Only I don't know how to get the UserBackingBean from a FacesContext.
    Please help?
    Romano

    ... and if you decide there MAY be several users logged in simultaneously, you can get the user associated with the current session by doing :
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    Map sessionMap = externalContext.getSessionMap();
    UserBackingBean userBackingBean = (UserBackingBean)sessionMap.get("userBackingBean");assuming you labeled your UserBackingBean managed bean "userBackingBean" in your faces-config.xml

  • How to get Android apps with dauphin browser

    Hi.. l did try to get Android apps with dauphin browser but it keep sending me back to BB apps what do i have to do to get tout Android apps...
    Thanks in advance for helping.

    Ok your loosing me a bit here. why are you going thru a browser to download an app... just go into the appworld  (app) on your playbook and have a look thru them to see what you want to download and then do it that way... as far as android apps are concerned, they are not shown in appworld any differently than others...  you can do a search for them as well in the top right corner if you need...if its been made available for BBPB it should be there...
    hope this is some help... 

  • How to get user session details ?

    Hello.
    I can get user session details querying the "USER_AUDIT_SESSION" view against my developing database.
    I have written a PL/SQL function to retrieve those session details. When I executed the function on the production database I have not got any records. It seems that the underlined view is not being refreshed in the production environment.
    Is there any other view or table, available to unprivileged users, I can use to get session details such as the connection timestamp and the user action ?

    Thanks for the reply.
    Ok, I might check it using a non DBA user, I am not sure, though.
    All the database queries have to be executed under a normal user connection.
    I would like a way to get session details not using "user_audit_session".
    Is there any table or view, available to a default profile user, which has session details and has records as a default behaviour?
    As far as I could check disable audit_trail seems to be the normal behaviour of the clients of my application. There is no records in "user_audit_session".

  • How to get the first and second quarter from CRT

    Dear Freinds,
                    I have one scenario , the Functional SPEC says Read the payroll results and from the CRT  get all the 4 quaters
    for the wage type /5UH  and sum them and then pass on the to field in the main strucutre.
    Iam using the FM HR_GET_PAYROLL_RESULTS
      CALL FUNCTION 'HR_GET_PAYROLL_RESULTS'
        EXPORTING
          pernr                         = fp_v_pernr
          permo                         = fp_v_permo
          pabrj                         = fp_v_pabrj
          pabrp                         = fp_v_pabrp
          actual                        = 'A'
        TABLES
          result_tab                    = i_payresult
        EXCEPTIONS
          no_results                    = 1
          error_in_currency_conversion  = 2
          t500l_entry_not_found         = 3
          period_mismatch_error         = 4
          t549q_entry_not_found         = 5
          internal_error                = 6
          wrong_structure_of_result_tab = 7
          OTHERS                        = 8.
    Iam collecting all the Actual Result (current result) values
    on the selection screen iam passing for month april (04 2008)
    so this falls in the second quater .
    the internal table   i_payresult is picking up only the second quater (01-04-2008 to 30/04/2008 )  ,but since on the selection screen iam pasing as other period (04 2008) the internal table  i_payresult  returing from the FM  (HR_GET_PAYROLL_RESULTS) only   picks the second quater,
    could any one let meknow how i can pick up the first quarter as well and add the first and second quater to mee the requirement .
    Please help me in this regard
    Thanks & regards
    maduri

    Hi Manoj,
                 Thank you for giving me idea for going further  regarding this problem , so my final question for this is
    as per FS they said they are going to enter the payroll
    area and the other selection as 04 2008 
    In order to achieve the first quarter , because 04 2008 means they are going to enter for the second quarter , the payroll results will come only for second quarter and not for the first quater , if they want to sum all the two quarters then they shouldnt pass on the selection screen   the dates as 04 2008, instead they has to pas
    01 01 2008 to 30 06 2008 , as there is no point in they passing as 04 2008 as we are going to consider from 01 2008 to 062008 .   Please correst me if am correct regarding the dates passing on teh selection screen
    or if the user enters on theslection screen still enter 04 2008 and will be  able to acheive the first quarter ??
    Please answer me this point before i can change the logic of the code and tell to my FO regarding this point.
    thanks & regards
    Madhuri

  • How to get data from a second page?

    Hi guys,
    I have the first page, where I have a button, which will navigate to the second page to let user make some choices.
    After the user makes the choices, user will click a button to get back.
    How can I pass the choices back to the first page?
    Regards,
    Aaron.

    Hi Aaron,
    you can use the EventBus for the same.
    1) publish the event bus on click of the button ( the event f which navigates back to the earlier page)
    2) in the publish of this event bus, pass all the data which you have captured / which has been clicked.
    3) subscribe the eventBus in the App.Controller page ( assuming that you have created an app.view in which you have defined the sap.m.App() , to take care of all the pages to be added into the app).
    4) the handler function of this subscribe, will navigate you to the page required, along with the whole set of data you have passed in the publish of event bus.
    5) use onBeforeShow(oEvent) hook method in the view, which is being finally routed to.
    all the data passed from the previous view will be accessible here via : oEvent.data.dataPassedFromPreviousView
    Note : dataPassedFromPreviousView, assuming is to be the object in which u have set the data in the publish.
    Hope it helps.
    Regards,
    Viren Gupta

Maybe you are looking for

  • Need Urgent Help with static methods!!!!

    If I have a static method to which a variable is being passed...for example static String doSomething(String str) //..doSomething with str and return If the method is invoked a second time by a separate entity when it is already in use by one entity(

  • ORA-01078: Failure in processing system parameters

    Hi, I have installed Data Vault 11.1.0.7 on my DB, I need to configure the datavault with database. But i receive ORA-01078 as I select my instance using the following path in DBCA Launch DBCA -> Database configuration option -> select instance name

  • Backing up an eMac with something like Carbonite ?

    I just had a crash with my old eMac and had to do a clean install. I had previously looked for automatic backup like Carbonite (which doesn't cover any Mac machine), but never found one online which impressed me.  Question: Can anyone recommend a ser

  • Change on FSG didn't show up

    Hi, I changed Field Status Group for personal number from supressed to optional. Now when I try to post a test document using F-02, Personal number doesn't show up. I checked the Field Status Variant for CoCd and Field Status Group for A/c. They are

  • SX50 HS with Speedlite 430 EX II

    I'm trying to use a Speedlite 430 EX II with my SX 50 HS, but the Assist Beam of the flash doesn't seem to work. The camera's Assist Beam works correctly, the flash fires, but the Speedlite's Assist Beam doesn't. Is it normal? Thank you!