Session gets lost when proxied through a server

Hi,
Did anyone come accross loosing session valued when proxied by a server.
Does anyone have some work around for that?
Please let me know.
Thanks,
Kavitha

If you use a JSP to generate your form, the following is possible.
          <FORM METHOD="POST" ACTION="<%= response.encodeURL("someurl")%>">
          -brian
          Mike Williams wrote:
          > >>> On Mon, 27 Mar 2000 10:08:30 -0600,
          > >>> "Jim" == "Jim Clark" <[email protected]> wrote:
          >
          > Jim> Try using URL rewriting when the browser doesn't support cookies:
          > Jim> weblogic.httpd.session.URLRewriting.enable=true
          >
          > From the documentation, it seems that you still need to use encodeUrl().
          >
          > Curiously, the value of "weblogic.httpd.session.URLRewriting.enable"
          > doesn't seem to have any effect! However I set it, encodeUrl() still adds
          > a "WebLogicSession" parameter to the URL.
          >
          > Again, this helps with links, but I still lose my session when I use HTML
          > forms, as there seems to be no way to encode the session-ID in the request.
          >
          > Any ideas?
          >
          > --
          > cheers,
          > Mike Williams
          

Similar Messages

  • Getting problem when connecting to SMTP server through java code

    Hi all,
    I am getting problem when i am going to connect with "Kerio SMTP server" through java code. The error what i am getting is :
    "[16/Sep/2008 15:59:09] Sent: Queue-ID: 48cf8a73-000000f9, Recipient: <[email protected]>, Result: failed, Status: 5.3.2 554 5.0.0 Too many hops (101, max 100), message looping" when sending an email from [email protected]

    Looks like something is set up wrong on your server that's causing messages
    to be forwarded around a loop too many times without ever reaching the destination.
    For instance, if server A forwards to server B, and server B forwards to server A,
    this would happen.

  • Session getting lost between two applications deployed on two WLS versions.

    Hi,
    Jdev version 11.1.1.5.
    I am facing an issue of session being getting lost. Let me explain the scenario.
    Our client has a legacy application(xyz) running on Web logic server(10.3.3). We have developed an application which was deployed on Web logic Server(10.3.5).
    The Legacy application will call the developed application using URL invocation. In the legacy application, the logged in user information is stored in session and the same parameter is appended to URL to call the developed application.
    In the developed application, we have a servlet which reads the URL and based on the parameter appended to it, we set the context of the application. Everything is working fine till here.
    But, in the developed application, we have a link to navigate to the legacy application. Once navigated, in legacy application if the user again calls the developed application, the session which was set earlier is lost.
    Because of this, the context is not getting set in the developed application.
    Is there a way, I can resolve this issue? OR can I raise SR with Oracle to look into it. Please suggest.
    Thanks,
    Umesh

    Thanks Frank for the reply.
    Session sharing was not configured in WLS.
    I was searching for Session sharing and I found this article written by Lucas Jellema. http://technology.amis.nl/2012/01/18/sharing-session-state-between-jee-web-application-through-weblogic-session-descriptor-of-sharing-enabled/
    Here it is mentioned that for session sharing, we need to check the Enable session sharing in weblogic-application.xml.
    My question is do we need to make this change in both the application? i.e Legacy application and developed application.
    And it was mentioned in the article that both the web app were deployed to a single Web Logic Server. But in my case the Legacy application is deployed to 10.3.3 and developed application is deployed to 10.3.5.
    In this case will the session sharing works?
    Any how I will let our client know about this change and will give a try.
    Thanks,
    Umesh

  • Performance slowdown when running through report server

    There is a considerable difference between running a particular report through the report server. It is slower than when run directly from ReportBuilder.
    Each points to the same data/application server. There is very little formatting or other work required of the client.
    The difference is about 10-fold, i.e. a report taking 1 minute to run via ReportBuilder takes about 10 minutes when launched through the report server.
    I have no idea how to begin diagnosing this. Our DBA says it is possible for the 'explain plan' to differ because the SQL is contained within the .REP file (and not as a stored procedure in the database). Even so, how/where would one begin looking to discover the reason for the dramatic performance difference?
    Performance monitors on both the app/database server and the Oracle engine show that the slow running report consumes about the same amount of resources as the faster report. The slower report simply takes 10 times as long to run.
    Perhaps we're not looking at the 'best' performance monitor parameters?
    Anything else we can use to trace execution differences?

    When we get this we try the following.
    The dba's have some tool which can view the sql running under the server and the builder - you can then see if the plan is different.
    Ordering - if there is a lot of ordering we get the SQL to pre order using the ORDER BY clause, this means the IAS server has less work to do (depending on your PC we find a PC is always quicker at formatting than the server).
    Userlogon - we have a different user logon to that used by the server, this sometimes gives rise to different plans. You can change this in reports using ALTER_SESSION. E.g. we find this can speed up reports:
    srw.do_sql('ALTER SESSION SET optimizer_index_cost_adj=50');
    srw.do_sql('ALTER SESSION SET optimizer_index_caching=90'); if put in the before report trigger (nb the values may differ depending on your environment.

  • JSP session getting destroyed when second user logs in

    Hi,
    I am facing a session related problem in a small login program in jsp. I am using three jsp pages, login.jsp (user logs in), page1.jsp (creates a session and stores username) and page2.jsp (accesses session).
    Login.jsp:
    No jsp actually. Just a simple html form.
    Page1.jsp:
    String name=request.getParameter("Name");
    session=request.getSession(true);
    session.setAttribute("Name",name);
    Page2.jsp:
    session=request.getSession(false);
    if(session.isNew())
    System.out.println("new session created");
    String name=session.getAttribute("Name").toString();
    As expected, it works like session getting set at page1 and used at page2. It works good if users log in one by one. The problem arises when 2 (or more users with different logins) try to access the page at same time. When a new user logs in, the previous user session gets destroyed (session.isNew() becomes true and session Id changes).
    Is it the way I am using sessions (missing something), or there is some setting in tomcat server to specify maximum number of logins (sessions that can be handled).
    Regards
    Kamal

    Hi,
    Thanks for reply, but I guess the problem is not clear. Let me explain..
    A user logs in, he reaches first page (page1.jsp), here session is getting set. Then user goes to page2.jsp where application retrieves the information from session and uses it. It works all well.
    When two (or more) user logs in.. First user logs in, he reaches page 1, session is set. But then another user logs in (different id) and a session is set for him as well. Now the problem here is that session for first user gets destroyed at this point, which is unexpected (two sessions should not conflict, on different machines).
    Additionally, the problem does not happen necessarily at second login. eg. sometimes 4 users log in and when fifth one logs in, fourth gets logged out (session gets destroyed).
    I am not able to figure out, whether the problem is in code (given in first post) or there is some tomcat setting responsible for this behavior.
    Regards
    Kamal

  • Web configuration lost when upgrading to advanced server admin

    Hello,
    after setting correctly the basic configuration,and setting the web servives, we did the upgrade to advanced option and then we focues to other apple problems like getting network connection, starting xgrid,etc), and then is when we realized that the web settings, server name, etc were lost when we moved to the advanced server admin.
    grrrrr!
    any idea?
    thanks

    I would most emphatically recommend that you get your boss to sign off on you having no liability nor culpability for any results of work he expects you to do "on the side".
    People study and learn for years - and appropriately so ! - in order to accomplish this kind of work effectively and efficiently.
    If you are learning and have a non-production environment to work with and potentially wipe & reinstall where need be, then by all means, go for it (start learning).
    But otherwise your boss should accept that s/he is getting what they're paying for, and since it is nothing, they should be prepared for that.
    It is neither technically nor professionally advisable to foist a task such as this on someone and expect the result(s) to be that of a trained professional in that field. The fundamental concern is the disconnect there, and the unacceptable risk this situation could put you in, either now or in the future.
    To the matter at hand, I generally recommend strongly against an upgrade, as compared to a (verified good) backup, wipe and reinstall and configure from the outset as "Advanced."
    For computer management, you will want to run your server as an Open Directory Master,
    and as such, you must must must have verified working DNS lookup(s) for your server's FQDN, prior to proceeding with re-installing & reconfiguring it.

  • Systemd/user: tmux sessions get killed when stopping systemd session

    Following the wiki guide on systemd/user, I am now starting my X sessions using systemd unit files for my user.
    My problem: when I quit X or exit the systemd session (for example through $ systemctl --user exit), my tmux sessions get killed along with it. Note, I do not start tmux with unit files, but simply through invoking “tmux” in a virtual terminal. I have also tried detaching the tmux session before quitting the systemd session, but to no avail.
    How can I make my tmux sessions survive X closing?

    That is beacuse tmux becomes a child process of the systemd --user session.  So it gets caught up in the cgroup and everything.  What I have done is I start a system service of tmux as my user (I have creatively come up with the name "[email protected]").  Here is what I've got, that has been working for me:
    % cat /etc/systemd/system/[email protected]
    [Unit]
    Description=Start detached tmux session
    After=multi-user.target
    Before=shutdown.target
    [Service]
    Type=forking
    User=%I
    WorkingDirectory=%h
    ExecStart=/usr/bin/tmux new-session -d -s %u
    ExecStop=/usr/bin/tmux kill-session -t %u
    Restart=always
    [Install]
    WantedBy=multi-user.target
    Last edited by WonderWoofy (2013-04-27 22:35:27)

  • Event gets lost when iView is uncompressed for the first time

    Hi All,
    we are developing an application that manages attachments (meaning: files stored in KM) and per request by the client consists of several iViews. One of them contains a search interface, another one lists the hits that have been found. So the iViews have to communicate.
    We achieved the funcionality by using portal eventing and the HTTP session. The search iView compiles the search string and writes it to the session.
    request.getComponentSession().getHttpSession().setAttribute(searchString, .....);
    We then use javascript to fire an event on which the searchResult iView reacts and fetches the searchString from the session. The actual search is then performed within the searchResult-iView.
    The only problem is that the client requested that the searchResult iView should initially be collapsed. So we set its "initial display" property to "collapsed" and implemented some javascript functionality in the search iView that expands the searchResult iView when a search is performed:
    function openIview( iviewID ) {               
      var temp = parent.pageSupport._getIvuPageId(iviewID);
      var ivuBankObj = parent.pageSupport._getIViewBank(temp);
      if (ivuBankObj.getToogle() == 0) {
        var trayid = ivuBankObj.getTrayId();
        var event = document.createEventObject();
        event.type = "click";
        if(parent.htmlb_TrcToggle(trayid,'0',event)) parent.pageSupport.ivuToogle(iviewID);
    We then fire an event:
    EPCM.raiseEvent('...', 'SearchEvent', param, '');
    All works fine, except for the very first time the searchRersult iView is expanded after the application (meaning the page containing the iViews) has been opened. The searchResult iView is properly expanded, but the event seems to get lost so that no search is being performed (no error, but no reaction by the iView).
    We observed that it seems as if the contents of the iView are only fetched by the browser when it's expanded for the first time. (The progress bar of the browser shows loading activity when expanding the iView for the first time). Supposedly the event gets lost because the serachResult iView doesn't fetch it since it's just being loaded.
    After this initial erroneous behavior, the iView can be in compressed or expanded state before a search is being performed and everything works fine.
    Interestingly enough the problem can be resolved by setting a timeout of several seconds after expanding the iView and before firing the search event. But we find this to be a very questionable (and inconvenient) method of solving this problem and would rather like to solve it properly.
    Does anyone have any ideas how we could achieve this? Is there a way to determine whether an iView has been loaded by the browser (because obviously displaying and loading an iView seem to be two different things)?
    Thanks in advance,
    Jens

    We introduced a boolean "isInitial" flag to the bean which we use to determine whether the iView is expanded for the first time or not. If so, there is a timeout of 2 seconds before the event is fired.
    Not really satisfactory, but working.
    Jens

  • IPhoto gets lost when I try to edit

    Hello all,
    I am completely new to Mac's and iphoto and I'm having a terrible problem when I try to view pics in iPhoto. I've imported a couple hundred photos (busy christmas) and moved them into neatly organized albums. I've rotated them this way and that while viewing them at thumbnail size. My problem is, when I double click on a photo to edit, my machine seems to get lost. Sometimes nothing happens, sometimes I get a little gray spinning thing. The machine has not crashed (I can still go back to another album / library) but I can't view my photos close up. I've done all the "software updates" and I have checked that the photos are actually on my HD (I can call them up in "Preview") Any thoughts?
    --Idiot

    Paul,
    Those two folders are not supposed to be there, so drag them out into the Pictures folder for now.
    Since you have only had your computer a month, I think it is best to just create a new library and import the images from the old back into it.
    Close iPhoto
    Rename your messed up iPhoto Library to "iPhoto Library_old"
    Drag this library to your desktop
    Hold down the Option key and launch iPhoto
    This is the window you will get
    Create a new library or choose a library to open
    Choose to create a new library
    Once this new empty library is open it is time to import the images from your old library
    Go to File>add to library
    Navigate to the old library on your desktop and highlight it in the window, then click the "open" button.
    iPhoto will start importing the images from your old library
    This is what to expect:
    Your images will be imported in nice dated rolls. (make sure your view is set to sort by rolls to see it) There are a couple of caveats to this. You will get rolls named "Originals" These rolls will contain your video clips and your original images that you had edited. If you had RAW files they would be in those rolls too (I don't do RAW, so I don't know for sure) Delete what you don't want from those rolls. You will also get the jpeg pointer files to your video clips imported. They will just be jpegs and will not point to the video clips anymore as iPhoto made new ones when the clips were imported again. You can delete those. they should be in a roll right next to the newly imported video clips so they are not hard to find. The thumbnail files don't get imported as iPhoto makes new ones when the images are imported.
    Once all you images have been imported, check through the library and make sure everything looks ok.
    You can now start making your Albums, and do your keywords or any other organizational steps.
    You can also delete the old library on the desktop.
    It is also a good time to backup this new library to CD/DVD by burning the iPhoto LIbrary folder in the Finder, or copying the iPhoto Library folder to an external drive formatted for Macs, or copying the iPhoto LIbrary folder to an iPod.
    After the new library is created and your images imported into I want you to check those two folders I had you drag to the Pictures folder and see if those images are in your library. If not then drag those two folders into an open iPhoto Library viewing window. You can also just use the File>add to library command and navigate to a folder at a time and choose it to import.
    let me know how it goes.
    Lori

  • Tags get lost when archived (Mac OS X 10.8, Thunderbird 31.6.0)

    I tag messages in Inbox and Sent folder immediately, later archive them with "A" shortcut. This worked well until I upgraded Thunderbird to 31.6.0.
    Now my tags get lots when moving to the Archive, and even when I tag them again, tags get lost after a while (restart of thunderbird it seems).
    This problem occurred in the German version, testing the English version for a few days, tags do not get lost, it works fine.
    I got the idea to change to the basic version from another thread, where a Turkish user had problems with tags as well.

    Just for further confirmation that the installation went through succesfully multiple times:

  • Session getting lost

    Now issue related to session
    I am using tomcat 3.1
    In my login page my session value get lost frequently.I am using session.setAttribute("logon.isDone", name); in servlets and In every jsp's I am checking as <% if(session.getAttribute("logon.isDone")==null){
    response.sendRedirect("/iscap/report/relogin.jsp");}%>
    The value get lost in a very short time so user is sent to relogin .
    Now what I do here?
    payal sharma

    Hi
    try to set the maximum interval between requests
    eg:
    session.setMaxInactiveInterval(6000);
    vis

  • Blank spaces at the end of an IDoc text field get lost when posted to R/3

    Hi Guys,
    I am facing the following issue:
    In an XML file-to-Idoc scenario, there are spaces at the end of a text field in the inbound XML file, which I can see when I open the inbound file with a text editor like notepad, and they are kept after XI mapping is executed (I can see them in message mapping simulator). However, it seems that these spaces get lost once the IDoc is posted to SAP R/3 and they are not visible on SAP R/3 side.
    Do you have any idea ? Thanks.
    Best Regards,
    Evaggelos Gkatzios

    That means SAP is removing the spaces from IDoc fields, where you spaces are not allowed. Does it create any problem?
    Thanks,
    Nabendu.

  • Hyphen gets lost when printing to computer to plate

    hello!
    i´ve got a big problem. I have a pdf from a client and everything is fine while checking the pdf.
    acrobat preflight and my creo software tell me, that everything is ok.
    but when die creo rip produces the output date, its a tiff file, the hyphenation at the end of a line gets lost.
    e.g prob-lem looks like pro lem.
    my client uses indesign version 6.0, with version 6.0.4 there are no problems.
    the pdf is exportet to acrobat level 1.3.
    I couldn´t find anything that explains this error.
    We produced 18000 broschures and the client doesn´t accept them.
    thanks
    michael

    Over years of experience in the graphic design and printing industries, I have seen this sort of problem from time to time with both film and ctp RIPs. They are most often, although not always, caused by an issue with the RIP software being out of date.
    IF the hyphens are visible in the PDF, the RIP software should process them properly.
    I have also learned that visual checking is essential. The client should ALWAYS supply a laser printed copy and even a cursory comparison between the film, plate or first sheets off press should reveal the more obvious problems.
    I doubt that you will be able to tell the customer that the problem is his fault.

  • Session gets hanged when breakpoint is set, else works properly.

    Hello Experts,
      I am expierencing that when i activate the breakpoints in my source code, my sessions gets hanged up.But when i remove the same breakpoint , i get to see the output. I have all the rights , and i use to debug till this last week.
    Can anyone help me in this issue.
    Thanks in advance.
    Swapnil

    Hi, Waghmare
    Please Check your GUI version and Patch Level i think problem is with your GUI
    Follow Steps Bellow
    --> Press ALT + F12
    --> From the menu Select About from here you can Check the Version and Patch Level
    Regards,
    Faisal
    Edited by: Faisal Altaf on Feb 1, 2010 3:12 PM

  • Issue in applying SSL selectively to Login JSP Page--Session getting lost.

    Hi,
    I am facing some issues with SSL configuration on my web site running on tomcat 5.5. I am using jdk 1.5 and form based authentication with JAAS framework.
    The SSL configuration is working perfectly when applied to complete web site, but starts giving problem when applied selectively to some JSP pages. At present I am trying to apply SSL just on the login page.
    When the login screen loads up, the URL in the browser has a protocol "*https*", as expected, but it doesn't gets changed to "*http*" once the user has successfully logged in. Why is the automatic change from https to http not ocurring?
    Also I want to know which is the default page, tomcat will direct the logged in user to, once successfully authenticated using form based login; Is there any way to change this default page to some other page. It looks like that tomcat automatically directs to index.html , once the user has been successfully authenticated, but I am not so sure. My index.html page is having 4 frames; the source of these frames are different JSP pages, which are not under SSL.
    My aim is to apply SSL just on login.jsp so that password doesn't travel in clear text. Once the user is authenticated he should see index.html and the address bar's URL should change it's protocol from https to http.
    Please, find below the code in my web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>CWA Application</web-resource-name>
    <url-pattern>/about.jsp</url-pattern>
    <url-pattern>/admin_listds.jsp</url-pattern>
    <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*login.jsp*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>CWA Application</realm-name>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/login.jsp?error=true</form-error-page>
    </form-login-config>
    </login-config>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    My login. jsp has below code:
    <form name="login" method="POST" action='<%= response.encodeURL(*"j_security_check*") %>' >
    <tr>
    <td width="100%">
    <table width="260" border="0" cellspacing="0" cellpadding="1">
    <tr>
    <td align="left" valign="top" rowspan="4"><img src="images/space.gif" width="15" height="5"></td>
    <td align="right" class="login-user" nowrap ><p>User name: </p></td>
    <td align="left" valign="top"><input maxLength="64" name="j_username" size="20"></td>
    </tr>
    <tr>
    <td align="right" nowrap class="login-user"><p>Password: </p>
    </td>
    <td align="left" valign="top">
    <input maxLength=\"64\" tabindex="2" type="password" name="j_password" size="20">
    </td>
    </tr>
    </form>
    The entries in my server.xml are following:
    <Connector port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    keystoreFile="${java.home}\lib\security\cacerts" keystorePass="changeit"
    clientAuth="false" sslProtocol="TLS" />
    I have gone through the http://forums.sun.com/thread.jspa?threadID=197150 and tried implementing it; The filter as explained in the thread does gets called but the session values are still lost.
    Please note I am using javascript to go from secure "https" to "http" once the user has successfully logged in The javascript code is as below:
    top.location.href="http://localhost:8080/qtv/index.html." ;
    If I use response.sendRedirect("http://localhost:8080/qtv/index.html") for going to non-secure mode, the index.html page does not gets loaded properly. (Please note that my index.html is made of *4 frames*, as explained earlier. This is a legacy code and frames can't be removed).
    The reason for index.html not getting loaded properly is that the Address bar URL does NOT change its URL and protocol from https (https://localhost:8443/qtv/index.html ) to "*http*" (http://localhost:8080/qtv/index.html) when esponse.sendRedirect() is used ;this is the default behaviour of response.sendRedirect(). And because the protocol in address bar is https, index.html is not able to load the other JSP's in it's frames because of cross-frame-scripting security issues (The other JSP's to be loaded in frames are are NOT secure as discussed earlier).
    Please let know if any way out.
    Thanks,
    Masaai

    Hi
    try to set the maximum interval between requests
    eg:
    session.setMaxInactiveInterval(6000);
    vis

Maybe you are looking for