Each request gets a new session problem

I have a standalone oc4j and I have deployed an application that uses Dynamic JDBC Credentials as described in ½How To Support Dynamic JDBC Credentials½. The application works fine when oc4j runs on every computer except one (the one it should be on). Every time an action is supposed to execute (after the user has logged in) the method createSessionCookie in MySessionCookieFactory gets executed. Although it is the same user and it should be the same session. My guess is that a new application module or a new session is started for some reason. What could the reason be?

Hi,
What version of JDeveloper are you using? If you have used 10g to develop an ADF/Struts application then you will need to reference the updated dynamic JDBC credentials HOWTO for this type of application.
Please note that the new version of the HOWTO only applies to ADF applications developed in 10g -- the older version will still work for 9.x applications that have been migrated to 10g.
The issue with the 9.x version is that it does not get in front of the ADFm/BC4J bootstrap that is now being performed by an ADF servlet filter.
The new version is expected on OTN in the next week or so.
I do not know why a new session is required for each request. Have you disabled session tracking for this servlet container?
Hope this helps,
JR

Similar Messages

  • Session problems on Windows

    Hi There,
    I'm using zend framework for doing the app which I developed on Mac but had to switch back to Windows 7. I tried to move the application as far as I can, but I'm not able to solve one big problem. This situation is as follow:
    -> I login with normal php / html site and placing a Zend Auth object into session (Normal Zend Framework mechanism)
    -> After detection of what kind of user logged in I redirect the site to given html site which contains the flash file for the user kind ( all within the same domain )
    -> I check on every RemoteObject request the user credentials existence in the session, if not present or timed out I send back an Event to get the flex application to log out
    -> In normal case ( on the mac and production site ) it works great, but in Windows 7 I always get logged out directly after login and loading the flash site.
    After further debugging I found that the requested site get's a new session id in flex's RemoteObject and after logging out the same session id is used than on login. On the Production Site it's still working great even on Windows.
    How is this possible? Is there a way that Flash in Windows uses the same session accross the same domain? Where else should I look? Nothing has changed in php code nor server settings, except 1 thing mainly I use now virtualhost on windows rather than a simple localhost/project url.
    r. Sandor

    Thanks jbf00 for your info, I'm doing this almost 4 days and no solution in sight. The only thing that I come a bit further is that the first check on the login credentials goes well (authorization check) but the next RemoteObject request get's a new session. The current situation is:
    -> login via PHP / Zend Framework
    -> redirect to an html site with Flex content
         -> request Authorization confirmation via RemoteObject goes well ( with authorization test )
         -> request Data via RemoteObject fails on authorization test
    according to the Network Monitor I can see that the last request gets a new session_id and I don't do any session_regeneration
    I did installed a new debian server to test the issue on Linux based system as well, but had no effect so, even the last working example has been recompiled with Windows FB4 instead of the Mac one.
    the only things I can think of is that the Windows version of the FalshBuilder 4 (trial) doesn't work well somehow
    If anybody has some other suggestions I will cover that as well.
    r. Sandor
    PS: As I mentioned I did the followings:
    -> instead of using the localhost entry I do use now a VirtualHost now ( .htaccess change for the MessageBroker controller :: ZendAMF
    Edit:
    I was completely wrong, I had a minor bug in the Authorization confirmation method, but the problem still remains so after login and redirection the first request has a wrong session_id

  • How to cut part of multitrack session to new session in Abode Audition 3.0?

    I record live performances in Adobe Audition 3.0's multitrack feature, which are about an hour long.   When I highlight a section of a set of four tracks (containing one of  the songs I want to save out), I cut it, and paste each track into a new session.  However, it  looks like all I'm doing is pasting the *whole* thing, with just a  section showing.
    Is there an easy way to create a session in Audition that contains  *just* the portion I'm highlighting?  Having to copy the entire hour  long performance for each song is eating up a lot of storage space.   There must be a way to "trim" the copy so that the raw files associated  with it *only* contain the song I'm looking for...?
    I suppose I could find out the beginning/ending times I need, highlight that portion in the first track in track view, trim it, and save it, repeat for all four tracks, and then load them all into a new session, but it seems like there must be an easier way?
    Thanks in advance...  Still getting the hang of multi-track recording in Audition!

    Sorry to necro this thread, but in case anyone is looking for these sorts of solutions again it may be useful to share my own method(s). I am often faced with this process, and will do the splitting process before I do anything else, this is important for me so I can keep the original files untouched. I am assuming you already have the base multi-track session open and tracks set up. This should work for most version of AA but instructions are based on CS6 (I have CEP, AA3 and CS6 on my machine).
    Method A:
    1. Select the time the excerpt you want covers.
    2. Go to File>Export>Multitrack Mixdown (or right click on the selection and choose Export>Time selection)
    3. Select the format you want your tracks to be in - you can leave this as is to use the same as source, or convert to 48k-24bit for DVD or 44k-24bit for CD at this point (the earlier the better). This will be the same as the new session you will create later. Make a new folder for the session audio somewhere and choose that as the destination.
    4. Select the Mixdown options [Change] and check each track individually, you can uncheck the master track unless you also want a reference track.
    5. Ok all this and wait for export to finish.
    6. File>New multitrack session, then create a new session in the folder you created when exporting the audio.
    7. Drag and drop the exported tracks to the new session.
    8. Finished.
    Method B:
    1. Create a new session, keeping the original open, make sure the original is the active document.
    2. Select the time the excerpt you want covers.
    3. Press CTRL-A to select all clips
    4. Edit>Copy, flick to new session, Edit>Paste.
    5. This creates only the time selections cut out from the ORIGNAL clips, we need to make unique ones, so...
    6. You now have, non-unique copies of the whole tracks (the session is referencing the original files), so you need to double click each wave and trim them and make them unique. Once in waveform view, right-click>select current view time then right-click>Copy to new.
    7. repeat 6 for each clip, delete the existing clips and drag the new trimmed clips from the files panel tab to the session.
    8. finished.
    Method A is better for large sessions, but B can be quicker when you just have a couple of tracks and your originals aren't huge.
    I'd love a Copy time selection to new session feature that also make new clips...

  • New session creation

    I have a servlet filter that checks the session for every incoming request.
    The session validation is done for every request except the login request. If a request with a new session, which is not a login request is sent, then unauthorised user is sent in the response.
    If the http request for login is sent in the form of : http://ipaddress:portnumber/myApp/login.do, and after successful login, if the subsequent requests are sent in the form of
    http://mymachinename.domain.com/myApp/processotherrequests.do (since Apache server is configured on my machine), then these requests are treated as new sessions and hence unauthorised user response is sent back.
    what could be the problem?

    The session is maintained as a cookie on the browser with the name JSESSIONID. The browser only sends cookies back to the domain that set the cookie. The browser does not know that the ipaddress and the domain name are the same so does not send the cookie.
    As an example the ip address 127.0.0.1 is equivalent to the domain name 'localhost' but the browser does not know this so a cookie created for 127.0.0.1 will not be send to in a call to 'localhost'

  • How to start a new session

    Our apps use the NTLM single sign-on with the page sentry code posted on this forum. But there are some authorization schemes that run once-per-session and use some session state that is established in the post-authentication block of the authentication scheme.
    Short of closing all browser windows and re-launching the app, is there some way in Apex to get a new session, similar to logging out and logging in? I see that the APP keyword in the f?p= URL's purge-cache position clears out all session state but it retains the session id so it doesn't address the issue I mention above.
    Thoughts? Thanks

    Hello Vikas,
    >> How would that API be invoked?
    Unfortunately, I’m not really the guy to help you with all the intricacies details. I believe you should try Jason Straub from the development team. You can try through his blog.
    In general, there isn’t one procedure that covers the entire logout-login-authentication cycle. You actually need to invoke several procedures, one after the other.
    >> Ideally, it would be via a link available from anywhere in the application, like a Navigation bar entry. But links don't submit the page and so can't invoke a server side process …
    Yes, but they can invoke a stored procedure. As you mentioned the Navigation Bar, you should hover over the ‘logout’ entry of the Application Builder Navigation Bar and see how it invokes the logout procedure. You can do something similar with your own procedure, which will invoke all the necessary procedures to complete the full cycle you need.
    >> Thinking out aloud, would the session timeout feature introduced in 3.2 be of use here?
    This feature can be controlled using the APEX_UTIL.SET_SESSION_MAX_IDLE_SECONDS procedure.
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • How to get a parameter from each request in a session scope BackingBean

    While calling my JSF page, I pass an id as parameter in the URL, and in the Backing bean I retrieve it from the request.
    On each request I need to get the id and populate the page accordingly.
    But I am forced to create my Backing Bean in session scope b'cos otherwise ValueChangeListener method does not work properly.
    So where and how do I get the id on each request?
    Pls. help

    What you can do is create it in the request scope like this:
    <managed-bean>
          <managed-bean-name>personBean</managed-bean-name>
          <managed-bean-class>
            com.PersonBean
          </managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
           <managed-property>
                 <property-name>id</property-name>
                 <property-class>java.lang.Long</property-class>
              <value>#{param.id}</value>
          </managed-property>
    </managed-bean>And then in the page use a hidden field to set the id in case of a postback (validation error):
    <h:inputHidden id="id" value="#{personBean.id}"/>Does that help you?
    Thomas

  • New session created with every request

    Hi there,
    I have an web application that we used to deploy on tomcat, websphere and bea without any trouble. We are trying to move to support OAS and the application gives this peculiar behavior:
    A new session is created with every single request by the client browser. I have searched these forums for the better part of today and read some interesting similar cases but none of the fixes seem to have any effect on my problem.
    Is there a different way I need to request the session object from the request in the app for OAS? Or is there a configuration that I should have? I am deploying the app as a .war file. Is there a better way to deploy on OAS, should I stick the war in a .ear?
    Any help on this would be most greatly appreciated!
    Thanks,
    -Adam

    I have a problem that matches with this subject line but its somewhat different. This original posting wants to create new session and invalidate the existing one but my problem is to keep the session invalide if it has expired for the browser.
    Anyways, here is my problem. I have JSP named entity_actions.jsp which has 3 pop-up links that opens up with code like:
    window.open('restaurantentry.do?entityName=restaurant')
    window.open('districtentry.do?entityName=district')
    window.open('baseentry.do?entityName=base')
    My web.xml has this tag:
    <session-config>
    <session-timeout>5</session-timeout>
    </session-config>
    And the way forward the response for each request is:
    context.getRequestDispatcher(urlString).forward(request, response);
    The code I check for session timeout is:
    private void checkForSessionTimeOut(HttpServletRequest request)
    throws SessionTimeoutException
    HttpSession current_session = request.getSession(false);
    logger.info(CLASS_OBJECT, "Session in checkForSessionTimeOut(): "+current_session);
    if (current_session == null)
    logger.error(CLASS_OBJECT, "SessionTimeOutException has thrown.");
    throw new SessionTimeoutException("sessionTimeOut");
    Now lets say I want to show the end user session expiry page after 5 mins of idle time. Now from entity_actions.jsp when I click/open any one popup first time after 5 mins of idle time/session expire,
    logger.info(CLASS_OBJECT, "Session in checkForSessionTimeOut(): "+current_session);
    this loggers shows current_session as 'null' and I can display session exp mesg on the popup page. But when I click/open any other popup or any other link on the page it DOES WORK instead of having current_session = null, it creates new one. And I can see the sessionid which is different than fist session created on the same base page/browser.
    The same pattern of code used to work on Tomcat and JRun before for showing consistant session expiry on all the clicks being made on the same browswer after session gets expire.
    Why OC4J / JDev 10.1.3 is creating new session on the same browser even after session has expired?
    How can I fix this?
    Thanks

  • Create new session for each window opening

    From a jsp page i open a page called student.jsp by clicking on students admision no.Therefore lots of pages can be opend in new windows with relevent student details.
    but when i click on the link i called a servlet, get relevent details and redirect to student.jsp. The problem is ,all opened windows have same session id and there are session conflicts.
    How can i create new sessions for each page thru the servlet or is there any other alternatives

    I actually was working on a problem that was similar to this, and the problem is with how each web-browser works with sessions...
    Each browser window (Except in one case with IE) will use the same session in each window.
    However, you might be able to use URL-Rewritting to manage your sessions and get around using cookies for for session tracking. I personally haven't tried this, but I'm betting that it will work.
    Best of Luck,
    Nate

  • OCI bowser generates new session with each page load

    Here is a summary of my problem:
    I am trying to implement the SAP Open Catalog Interface (OCI) with our eCommerce software, but I am having issues with the Web browser that OCI uses.
    Our eCommerce software utilizes the browser session id to identify the user. Our issues is that the OCI browser supplies a new session id with each page load.
    The weird part is that if I open a standard instance of IE, access the site, and then access the site though OCI the same session is shared by both the OCI browser and the IE browser. The OCI browser is now able to maintain the session ID as the user browses the site.
    Thanks.

    Thank you for your quick response.
    I understand that session IDs are always unique, and should only last for as long as the instance of the browser is open.
    What I have seen happen is that the session ID will get recreated with each page load with in a single instance of the OCI browser.
    When the site is opened in OCI it logs the user in, and then redirects them to the homepage. The problem is that the load of the login page, and the load of the homepage have different session IDs. If the user then clicks on a link on the homepage that page load will again have a different page load. This causes the eCommerce system to see them as separate users.
    As I described when I open an instance of IE first it seems to work. This leads me to believe that the OCI browser can read the cookie information, but can't write or create. 
    I am trying to figure out why the OCI browser keeps generating new Session IDs.

  • 'Get All New Data Request by Request' option not working Between DSO n Cube

    Hi BI's..
             Could anyone please tell me why the option ' Get one Request only' and  'Get All New Data Request by Request' is not working in DTP between Standard DSO and InfoCube.
    Scenario:
    I have done the data load by Yearwise say FY 2000 to FY 2009 in Infopackage and load it to Write-optimised DSO (10 requests) and again load Request by request to Standard DSO and activate each request. I have selected the option in DTP's to  'Get All New Data Request by Request' and its working fine between WDSO and SDSO. But not working between Cube and SDSO. While Execute DTP its taking as a single request from SDSO to Cube.( 10 request to single request).
    Regards,
    Sari.

    Hi,
    How does your DTP setting looks like from below options ? It should be change log, assuming you are not deleting change log data.
    Delta Init. Extraction from...
    - Active Table (with archive)
    - Active Table (without archive)
    - Archive ( full extraction only)
    - Change Log
    Also if you want to enable deltas, please do not delete change log. That could create issue while further update from DSO.
    Hope that helps.
    Regards
    Mr Kapadia
    *Assigning points is the way to say thanks*

  • HELP! On PC reboot all my extensions get disabled and each one opens a new Tab!

    Help!!!
    On PC reboot all my extensions get disabled and each one opens a new Tab!
    I have seen 2 threads here about this issue and a few more by googling the problem.
    However nothing, nothing, noithing... worked!
    Win7, MS Office 2007, Sony Vaio SZ1VP, FF 10.0
    and:
    >
    Download Unlimited 1.0, Read it Later 2.1.4, Pixlr Grabber 2.1.1, Cool Preview 3.5, Telyfi 1.2.5, Speed Dial 0.9.6.4, Google shortcuts 2.1.7.1, Scrapbook 1.4.9, Screen Grab (fix Version) 0.9.6.3c, Vertical Toolbar 0.2.6, Google Translator for Firefox 2.1.0.1, TinEye Reverse Image Search 1.1, Grooveshark Premium, 2.0.2, Quick Maps 1.5.0.
    >
    To try to solve this issue, I:
    Uninstalled:
    Antivirus (BitDefender)
    PC Cleaner (CCCleaner)
    Flash,
    Java,
    Shockwave,
    MediaPlayer...
    FF (deleting all the settings).
    Then reboot twice for safety.
    Then re-installed Java, Flash, Shockwave.
    Reboot once more.
    Re-installed FF, reboot once more.
    Checked that all the plugins were updated, and only then I finally installed my extensions.
    Checked that the user.js and preferences.js were not read only.
    Everything worked fine (even FF restart) until the next OS reboot!
    Then it all strated again!!!!!! It's driving me crazy!!!! Please, help! Machine cannot defeat man... or, better, machine can defeat me, but not the whole of the FF community!!!!!
    Please, I must get to the end of this story! Help!!!
    Tommaso

    NM, got it fixed. Thanks!!!

  • Session problem in a new window created by window.open()

    hello,
    I have a drugsearch.jsp page, I sessioned an durgCollection object on this jsp page using session.setAttribute("drugCollection",drugCollection);
    there is a link on this jsp which will call a javascript to open a new window .
    here is the javascript to open another new window:
    function openReportWindow()
    window.open("/drug/Report.jsp","report", "toolbar,scrollbars,width=800,height=800,left=100,top=10");
    but in the Report.jsp, I won't be able to get the same session object as in the calling jsp ( drugsearch.jsp) by calling session.getAttribute("drugCollection").
    if I change the link on drugsearch.jsp to link to the Report.jsp directly instead of opening a new window, then I can get the same session object from the Report.jsp.
    what's the problem? can someone give me an advice?
    thanks

    A session is assosiated with one client(browser).
    when you open a new browser, a new session is created. In order to have common place for both the browsers, try storing the data in the 'Servlet Context'

  • New Session getting created(!)

              Hi All,
              I am facing a wierd behavior. I have an application with a
              login page(jsp). User submits his authentication details,
              is authenticated in a servlet, and some of his information is
              put in the session. Later he gets "redirected" to another
              jsp(just like any other app).
              This is working fine most of the times. But randomly it is
              so happening that the jsp being redirected to does not get the
              values put in the session.
              Some more debugging showed that from login jsp to servlet, same
              session continued till the very last step(just before
              redirection). Just after
              response.sendRedirect(response.encodeRedirectURL(url));
              a new session gets created(!!). Any pointers?
              Please note I am testing all this out in a browser which is
              accepting cookies.
              

    Urgent!!
              We have the same problem on WLS5.1.
              Any suggestions would be fine
              Regards
              Osman
              "Bijay Kumar" <[email protected]> schrieb im Newsbeitrag
              news:3d0ed20f$[email protected]..
              >
              > Hi All,
              > I am facing a wierd behavior. I have an application with a
              > login page(jsp). User submits his authentication details,
              > is authenticated in a servlet, and some of his information is
              > put in the session. Later he gets "redirected" to another
              > jsp(just like any other app).
              >
              > This is working fine most of the times. But randomly it is
              > so happening that the jsp being redirected to does not get the
              > values put in the session.
              >
              > Some more debugging showed that from login jsp to servlet, same
              > session continued till the very last step(just before
              > redirection). Just after
              > response.sendRedirect(response.encodeRedirectURL(url));
              > a new session gets created(!!). Any pointers?
              >
              > Please note I am testing all this out in a browser which is
              > accepting cookies.
              >
              

  • Whilst using FF20.0.1 and now with FF21 the new tab thumbnails fail to open for each new session. Why?

    For a long time my chosen websites appeared as thumbnail images on the new tab page when I began a new session, maybe since about FF15, I don't recall for sure. Recently, however, whilst using FF20.0.1 this behaviour stopped and none of the thumbnail images for my selected websites opened up, although the links to them remained and this behaviour has continued to FF21, which I have been using since yesterday (19th May). This is not a serious issue, but I do like things to work properly and to understand why they don't. I don't know why there should be a relationship between the two events, but the problem began after having opened the new tab page and before the images opened up I clicked on one of the links - where the thumbnail image would normally be - to go to the website; thereafter FF failed to retain a memory of the thumbnail images from one session to the next. By the way, I never empty my history cache only my main web cache that has previously had no effect on my new tab thumbnails, not since about FF15 or so anyway.

    Cor-el, hi.
    When I opened FF about ten minutes ago I noticed that the new tab thumbnail image I had brought up from my previous session had been remembered, so I opened some of the other websites listed to bring back their images too; I then shut FF down, re-opened it and the new tab page to find all the images had been recalled. Next, I shut down the computer to determine whether or not the images were getting lost that way; on rebooting the computer and launching FF I again found the images were still there. Now I closed the new tab and emptied the main cache (43 MB); on opening the new tab the images were still opening (you will recall that when the new tab thumbnails first came out they disappeared on emptying the main cache). Bearing all this in mind I have not yet tried your suggestion of temporarily disabling the add-ons in safe mode because if the thumbnail images came up that would not currently tell me anything. Also, the problem I described in my first post does not remotely coincide with the installation of any add-ons, which have not been recent. Given then that my thumbnails are appearing after the cache has been cleared where does FF get them from now? I still don't understand this recent behaviour and why for the moment the problem is not occurring. Thanks again.

  • How not to get back on the page i just closed when opening a new session

    How not to get back on the page i just closed
    when opening a new session?
    I do have a live stream radio on now...
    Therefor new session might not be the complete truth.
    Gerard

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

Maybe you are looking for