How to open application twice in same browser  (cookie problem?)

We want to be able to open the same Apex application for a test and a production system simultaneously. Settings between the two environments can then be easily compared for example. Unfortunately it seems that both sessions place information in the same cookie and navigation in one application influences the other.
The workaround we use it to run both sessions in a different browser i.e. IE and FF.
Is there another way around this?
(apex 4.02)
Edited by: Rene W. on Jul 31, 2012 12:04 AM

Rene W. wrote:
Thanks for the reply's
@Erik-Jan
The cookie name you enter in the authentication scheme seems to be a static field. We deliver standard software packages so that value will be the same for every installation. Unless the value can be determined at runtime?
@Dietmar
That could be a workaround. What contributes to the problem is that although test and production usually run on different DB servers the Apex listeners run on one server but on different ports.We had the same situation. The problem is that the cookie does not distinguish between different ports.
Our solution was to setup the apex listener/OHS slightly differently. I think it was inside the mod_plsql config or http.conf, where you can set the url path.
Meaning instead of connecting to
<pre>http://localhost:8080/pls/<b>apex</b></pre>
we connect to
<pre>http://localhost:8080/pls/<b>apexdev</b></pre>
The result is that the cookie path is different. And there will be a new cookie for each path. And as long as all the environments have a different path, their cookies will all be separatly stored from each other.
However if you use the EPG, I'm not sure how this setting can be changed.
Edited by: Sven W. on Jul 31, 2012 12:19 PM
Edited by: Sven W. on Jul 31, 2012 12:23 PM

Similar Messages

  • How to open "AppServer Control" in same browser window as "Launch Control"?

    When I start the SOA Suite start web page ""SOA Launch Control" and I click e.g.
    on the link "Application Server Control" then another browser window is opened
    for the "Enterprise Manager".
    Is there a way to tell the SOA Suite to open the new web page inside the
    current "Launch Control" web page (=replace the current "Launch Control"
    web page) ?
    Peter

    You can look this extension if you want to sign on with different identities at the same time:
    * Multifox: http://br.mozdev.org/multifox/
    You can also use multiple profiles to rule out issues caused by extensions or other changes that you've made in your current Firefox profile as posted above.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    Use the -no-remote command line switch to open another Firefox instance with its own profile if you want to run different Firefox versions simultaneously.
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • Multiple Logins - Same Browser Cookie Problems??

    Is there any Issues in which a User uses Tabs to Login (LDAP Authentication)?
    I have only a Cookie Name in the Cookie Attributes in Authentication Setup.
    I had multiple browsers opened and signed on an application. A :tx- row lock contention was evident..
    INSERT INTO WWV_FLOW_DATA ( FLOW_INSTANCE, ITEM_ID, ITEM_VALUE ) VALUES ( :B4 , :B3 , :B2 ||':'||:B1 ||':0:0')
    Can someone explain what happened here, and does multiple logins have to be prevented?
    Should I add a Cookie Path and Domain to prevent this?
    Thanks,
    Mike

    Mike,
    I need a more detailed scenario to follow. I'm not even sure you are saying that something did not work properly.
    FYI, cookies have no presence in session state.
    Scott

  • Re: How to open application in english ?

    Ok, if nobody has comments, consider this final.
    The title should be "How to open application in english" though (without question mark).

    Solved by using InteractiveFormUIElement in the mode:UsePdf.

  • How to Open Application just once !

    I created a simple application but I dont want that my application be opened twice !
    How to verify if my application is already running ???
    If it is running is there any way to communicate with it ?
    Tnx !

    Hi,
    There are several possibilities for this situation.
    1 - first session gains a lock on a certain file (with a predefined or hard-coded name and location)
    second session will be unable to gain a lock on the same file and will thus know that the
    application is already up and running.
    2 - first session opens a port (with a predefined or hard-coded number).
    first session writes some opening message to this port.
    first session starts a thread which will listen to this port each ... minutes/seconds.
    second session opens port, writes some opening message to this port
    first session receives the message through the port and will reply some notification
    and request for closing session 2.
    session 2 will close.
    Several solutions are possible for running a limited number of occurences of the same application,
    for running all applications within the same JVM, and more specific control over the startup-process.
    Different kinds of information for controlling this setup-step can be transferred via (known) files and ports.
    Also take a look at sockets and java RMI.
    kind regards,
    Koen

  • Opening hyperlinks in the same browser window

    Hey Gang!
    How does one create a hyperlink such that it opens in the
    same browser window and doesn't keep opening a new window each
    time?
    Cheers!
    Gregory

    Do you meant that you want to "open the hyperlinks of your flash file in the same browser window"
    You flash file will be put on the internet and I think you have to configure your brower to achieve this goal.
    We all know that IE can be configured to open the hyperlinks in the same window.
    Thus if you want your flash file achieve this feature you need to write a code to control your brower.
    This code can be a simple JS code. You can just google this to find out the answer.
    good luck
    I love using flash quiz generator

  • HOW TO OPEN APPLICATION SERVER GRID CONTROL

    hi,
    i m working on application server 10g on windows i want to open application server grid control but not been able to how to do this .
    how to know path to put in browser ?
    any one can help me ?
    thks
    bye

    I think Metalink NOTE:280116.1 covers changing the ias_admin password when it's forgotten.
    Basically, you edit $ORACLE_HOME/sysman/j2ee/config/jazn-data.xml and remove the <credentials> property.
    Then you can reset the password with: $ORACLE_HOME\bin\emctl set password reset <new password>
    Or, sounds like you can put the password into jazn-data.xml (NOTE:280587.1) by editing the <credentials> property:
    Replace the existing encrypted password with the new password.
    Be sure to prefix the password with an exclamation point (!). For example:
    <credentials>!mynewpassword123</credentials>

  • Is it possible for multiple/different hyperlinks to open up in the SAME browser window?

    I am able to put hyperlinks to various web pages in a PDF document.  When I click on the first one, it opens up in a new browser window.   The problem is that I want each subsequent link to reuse that same browser window.  This seems to work when I open up the PDF document from my desktop, but if the document is first loaded into a web page, each link opens up a *new* browser window.

    Hi Pat,
    Thanks for the quick response.
    I used Adobe Acrobat Professional 8 to create the document.  I added a link and then in the "Actions" property for the link, I specified
    "Run a javascript":  app.launchURL("http://www.cnnfn.com", true) .
    I had to use the app.launchURL method because the "Open a Web Link" action causes a warning message to appear when the PDF is contained in web page.  You have to first click "Open in a new window" before the url is opened up in a new browser window.  The behavior that we want is that each time you click on a hyperlink on the PDF, you are automatically taken to a specific browser window (without warning and reusing the window that has already been opened).
    -Elsie

  • HTML presentation how to open url on the same page

    I have a presentation in keynote that I exported in HTML; it works no problem.
    What I want to do is to open a url embedded in the presentation on the same browser window, and not in a new tab so I can go back to the presentation with the browser point.
    Help please!!!

    I was wondering if there's an edit tom insert the "_self" command for links
    place a shape on the slide to act as a button
    right click the shape and select > add link
    from the add link to  dropdown menu:  select web page
    type in the URL
    click open to test the link

  • How to open a pdf package in browser when multiple files are bound together.

    Hi,
    I have to open a pdf package in browser that contains multiple pdf files any suggestions will help me a lot.
    Thanks.

    It shows me a page says "Multiple files are bound together in this PDF package"

  • How to open multiple instances of same form thru menu items

    i'm not able to open another instance of the form.....if i want to open multiple instances of same form ...what should i do???

    Hi Shenaz,
    To open multiple instances of the same form you need to set a different FormUID to each form you open.
    So lets say your FormType is MyFormXPTO. You need can set the FormUID as MyFormXPTO_1, MyFormXPTO_2, and so on.
    If you need a code samples, take a look at this post.
    Regards,
    Vítor Vieira

  • How to open my Ireport in new browser tab window

    hi
    I'm using Jdev v 11.1.2.3.0
    Isucced in conneting and calling (ireport) generated report from my adf application in pdf file format
    All what I want to do now is to call or open the report in browser tab window
    I can call it in the same tab window
    using this line code
    response.setHeader("Cache-Control", "max-age=0");
    or
    make attachment download
    using this line code
    response.setHeader("Content-Disposition", "attachment; filename=\"report.pdf\"");
    please help me in this last setp
    here is my code to call ireport
    after adding nessesary jar files and Datasource in wedlojic
    maybe it help others
    ============
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    import oracle.adf.model.BindingContext;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.binding.BindingContainer;
    //import oracle.adf.model.binding.DCIteratorBinding;
    public class mainNew {
    private RichInputText copyFrom;
    private RichInputText copyTo;
    public mainNew() {
    public void setCopyFrom(RichInputText copyFrom) {
    this.copyFrom = copyFrom;
    public RichInputText getCopyFrom() {
    return copyFrom;
    public void setCopyTo(RichInputText copyTo) {
    this.copyTo = copyTo;
    public RichInputText getCopyTo() {
    return copyTo;
    public String cb3_action() {
    String s =(String)copyFrom.getValue();
    String d =(String)copyTo.getValue();
    // copyTo.setValue(s);
    // DCIteratorBinding empIter = (DCIteratorBinding) getBindings().get("Employees1Iterator");
    // String empId = empIter.getCurrentRow().getAttribute("DepartmentId").toString();
    Map m = new HashMap();
    System.out.println(s) ;
    System.out.println(d) ;
    // m.put("eployeeId", copyFrom.getValue() );
    if (s!=null) {
    m.put("whr", "Where department_id ="+s); }
    if (d!=null) {
    m.put("whr", "Where employee_id= "+d);}
    if (s != null & d==null)
    { m.put("whr", "Where department_id ="+s);
    if (s==null & d!=null) {
    m.put("whr", "Where employee_id= "+d);}
    if (s!=null & d!=null) {
    m.put("whr", "Where department_id ="+s +" and employee_id="+d);}
    if (s==null & d==null) {
    m.put("whr", "Where 1=2");}
    try
    // runReport("empRep2.jasper", m);
    runReport("empsDyn.jasper", m);
    catch (Exception e)
    return null;
    public BindingContainer getBindings()
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public Connection getDataSourceConnection(String dataSourceName)
    throws Exception
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup(dataSourceName);
    return ds.getConnection();
    private Connection getConnection() throws Exception
    return getDataSourceConnection("hrDS");
    public ServletContext getContext()
    return (ServletContext)getFacesContext().getExternalContext().getContext();
    public HttpServletResponse getResponse()
    return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
    public static FacesContext getFacesContext()
    return FacesContext.getCurrentInstance();
    public void runReport(String repPath, java.util.Map param) throws Exception
    Connection conn = null;
    try
    HttpServletResponse response = getResponse();
    ServletOutputStream out = response.getOutputStream();
    /// response.setHeader("Cache-Control", "max-age=0"); // opens in same page
    response.setHeader("Content-Disposition", "attachment; filename=\"report.pdf\""); // genreat adownload file
    // response.setHeader("Content-Disposition", "inline; filename=\"" + "Report.pdf\"");//opens in same page
    response.setContentType("application/pdf");
    ServletContext context = getContext();
    InputStream fs = context.getResourceAsStream("/reports/" + repPath);
    JasperReport template = (JasperReport) JRLoader.loadObject(fs);
    template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
    conn = getConnection();
    JasperPrint print = JasperFillManager.fillReport(template, param, conn);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    JasperExportManager.exportReportToPdfStream(print, baos);
    out.write(baos.toByteArray());
    out.flush();
    out.close();
    FacesContext.getCurrentInstance().responseComplete();
    catch (Exception jex)
    jex.printStackTrace();
    finally
    close(conn);
    public void close(Connection con)
    if (con != null)
    try
    con.close();
    catch (Exception e)
    }

    One solution would be to generate the report via an servlet which you then call with an af:golink with an target frame set to blank.
    For a sample how to do this check out http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    Timo

  • How to open *.doc files in my browser?

    I create a region which display documents.
    It works greate with *.pdf, *.jpg.
    I want to know is it possible to view Microsoft Word files?
    How to determine which type of files I can open in browser!
    I use FF
    Regards, Kostya!

    I think this depends on your browser settings. Try this:
    1. In your Windows Explorer open the Advanced menue
    2. Go to "Options" and click the tab "File Extensions"
    3. Find the extension .doc and click on "Advanced" button
    4. Check the check box "Open in the same Window"
    5. Confirm
    Denes Kubicek

  • How to Open Hyperlink in a New Browser?

    Hi, 
    I have a hyperlink in my report that takes the user to a webpage and from my ASP application, I want the hyperlink to open a new browser session or tab instead of taking over my current session and losing my report.  This will give the users the ability to flip back to the report and open another page if they need to. 
    Interesting how right-clicking the hyperlink has Open in New Tab and Open in New Window greyed out. 
    Windows application works fine and the hyperlinks open in their own tab. 
    Is there a way to encapulate the url from the hyperlink in a javascript popUp? 
    I'm using CRVS2010 in VS2010. 
    Thanks,
    Brian

    Hi Brian,
    On the properties page of the view find the Property HyperlinkTarget, default is set to _self, change it to _blank.
    Have fun
    Don
    PS - Thanks to Dan P. For this.

  • How to open MS word document in browser window?

    Hi all
    Is it somehow acheivable to open a .doc - document in a browser window?
    If I link a .pdf - file from the document library in left navigation menu it opens in a browser window. If I do the same with a MS Word docuemnt it opens the Word application, but I want it to open it inside a browser. Can this somehow be done?
    Regards

    Hi,
    If you want open your document inside Browser, you can try the following settings:
    The setting that controls this behavior is located in Windows Explorer (not Internet Explorer) on the user's machine.
    Open “Windows Explorer”.
    Select Tools -> Folder Options... from the menu.
    Go to the “File Types” tab.
    In the “Registered file types list”, select the file you want to change the setting for (e.g. DOC).
    Click the “Advanced” button to open the Edit File Type dialog.
    There is a checkbox, Browse in same window, where you can specify whether the selected file type should be opened within the browser or launched in its host application when clicked on a web page.
    For more information, please refer to: http://support.microsoft.com/?scid=kb;en-us;162059
    Xue-Mei Chang

Maybe you are looking for

  • HP LaserJet 4 Postscript driver on Intel MacBook Pro

    I have an HP Laserjet 4M printer (with a JetDirect card) on my network. On my other Macs (PowerBook G4, PowerMac G4, Mac Mini PPC) all running 10.4 I set the printer up and was able to use the 'HP Laserjet 4/4M PostScript' (v1.1.0.X) driver. The supp

  • Since updating I get a " start below fold message" pop-up. Excite is homepage.

    Since I updated to 4.0.1 I have been having a message pop-up on the screen the says " start below fold" My homepage is Excite. I don't know if it is an Excite problem or a FireFox problem. If I am in another tab it will jump back to Excite when the m

  • Installing cs5 not working

    got a brand new macpro.    trying to install CS5 trial version.  i download adobe download assistant,  click the installer, it opens up, the bar goes across the screen, then it quits... nothing.     I called adobe tech support 3 times already, and th

  • Settings/Show menus not appearing when shared computer selected.

    My daugher and have PCs and share our iTune libraries with each other.  I'm not quite sure when this happened, but there are no longer any menus available when we select each other's computer under SHARED.  We can't select "Items not in my library" t

  • License/software  transfer to a new computer

    How do I transfer my CS6 and LR license from pc to new Mac?