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.
          >
          

Similar Messages

  • Listening for new cachings getting created?

    I'd like to be able to register my own MBeans on each distributed CacheServer for each cache that lives on that server. Is it possible to register a listener anywhere that gets called when a new cache gets created? Alternatively, is it possible to register a listener that is called after the cache factory has finished starting all the "autostart" caches?
    I'm using version 3.3
    thanks
    sam
    ps - I'm already registering my own custom global mbeans... but they are created before any of the caches get created.

    Sam
    You can specify your custom CacheFactory class in the override file so you can still use DefaultCacheServer
    When I needed to intercept cache creation I extended DefaultConfigurableCacheFactory and overrode this method:
    public NamedCache configureCache(CacheInfo cacheInfo, XmlElement xmlScheme, ClassLoader classLoader)
    Then just call the super class version before or after doing whatever you need to.
    The XML for the override file looks like this
    <coherence>
         <configurable-cache-factory-config>
              <class-name>com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory</class-name>
              <init-params>
                   <init-param>
                          <param-type>java.lang.String</param-type>
                          <param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
                   </init-param>
              </init-params>
         </configurable-cache-factory-config>
    </coherence>The above snippet is taken from the Incubator common library. You would replace com.oracle.coherence.common.configuration.AdvancedConfigurableCacheFactory with the name of your class.
    You need to call the override file tangosol-coherence-override.xml and put it on the class path or if you call it anything else then specify the name as a JVM argument with -Dtangosol.coherence.override=<name of your file>
    Jonathan

  • Whe downoading attachemtn adobe new tabs get created forever, download attachment can't be used

    I have the latest firefox app on my laptop. When I click a link attachment to see a dinner menu for example, new tabs get created one after the other and so on. It's like a feedback loop, just more tabs and tabs but then you have to close the firefox window multiple time to get it to stop. I went to other websites and clicked their attachments and the problem repeated.
    I have the current version of adobe also. please help. I'm using my internet msn exlplore now so can I send you this message. please help!
    Thanks,
    Wayne

    You get tabs opening endlessly if you select the Firefox program to handle a file when you get an "Open with" dialog.
    *https://support.mozilla.org/kb/Firefox+keeps+opening+many+tabs+or+windows
    You will have to revert this setting.
    Rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • Session gets created for every request.

    Hi ,
    I have two servlets where i set a object in the session in one servlet say servlet1.java and get in another servlet say servlet2.java.
    When i pass my session object from servlet1 to servlet 2 , servlet2 is supposed to get the arrtibute , but its always gives me a null value.
    I found out that a new session is getting created every time when i try to access servlet2.
    I tried to print the session object , and it clearly tells me that the object is differet from the one i set.
    Can anyone let me know why is this happening and how do i solve this .
    This happens for me in weblogic 8.1 setup.
    In my JBOSS set up with the same code it works fine.
    Thanks in advance.

    Sasikanth,
    Pardon me if I am stating the obvious, but according to your description the problem is with WebLogic. So did you try a WebLogic specific forum?
    Good Luck,
    Avi.

  • PDK portlet. New session being created.

    Hi,
    I have an existing struts/BC4J based application which runs fine
    local as webapplication. After portletizing it with PDK and deploying
    it to portal for some strange reason a new http session is created a few
    steps into the application resulting in losing the existing session data.
    I thought of switching to using portlet provider session but this is just
    stored in the http session object.
    Anybody experienced this problem as well ?.
    Thanks,
    Kenneth

    Hi Natalie,
    I'm more maintaining/finishing an existing application. So I didn't develop it initially.
    The version or oracle portal we're using is 9.0.4.1.0. As for portletizing a struts application, oracle pdk has been used. Instructions for portletizing a web app can be found in "Oracle Application Server Portal Handbook". Further you have to replace struts-html:form tags in your JSPs with pdk-struts-html:form tags.
    Some tips can be found here.
    http://www.it-eye.nl/weblog/2005/07/13/easy-publishing-of-a-struts-application-as-a-portlet-in-oracle-portal/
    As for losing session I post to a servlet from struts/jsp page which writes pdf to the output stream Running in local container it works fine. However when running in portal I lose the session before hitting the servlet. I notice at various other times that session is lost for no apparant reason.
    HTH
    Kenneth

  • New account gets created with wrong permissions (777 instead of 755)

    Hey Apple and Forum people, looks like there's a pretty bothersome error in the way that user permissions get set when you set a user's home folder to a drive partition.
    By default, a user's home folder is supposed to get 755, with all of its subdirectories (excluding Public and Sites) as 700. But if you set up a new user and point his/her home folder to a partition or a separate drive, the folder is set to 777 - meaning that anyone can read, write, and execute any file they'd like to from that drive.
    Given the sensible defaults of 755 during normal user creation, I can't believe this was intentional. And if it was intentional, then it's wrong and ought to be changed.

    Set the permissions on the other volume's root directory the same as the boot volume.
    owner:root
    group:admin
    chmod 1775
    Make a /Users directory on the other volume and
    set permissions same as on the boot volume,
    owner:root
    group:admin
    chmod 755
    create your new user directory in the /Users directory on the other volume.

  • How to keep old session id when a new session is created in web site

    Hi,
    I have a question about HttpSession in a Struts framework based project development.
    I have a web page "a.jsp" in public site (no need login) which can navigate to other pages/links. There is a button on "a.jsp" to popup a new window "pop.jsp" and create a session (session1). Usually, when I navigate to other pages/links from "a.jsp", it doesn't affect this "pop.jsp" and its session1. However, if I try to goto a secure site - a login page "login.jsp" from "a.jsp", since the "login.jsp" needs to kill current session before the login, the current session1 within the "pop.jsp" is killed at that time. When I go back to "pop.jsp", it will create a new session2 and the original session1 attributes does not exist any more. Therefore, I need to save the session1 id in somewhere to compare it with new session2 id when session is changed, and display some message in "pop.jsp".
    Do anyone know how/where to keep session1 id? Any sample/suggestion would be appreciated.
    Hanna

    check reply 2 of [http://forum.java.sun.com/thread.jspa?threadID=5279453&tstart=0|http://forum.java.sun.com/thread.jspa?threadID=5279453&tstart=0]
    like that you can comapre

  • New Row gets created in table automatically

    Hi all,
    I have a panel box(pb1) in my JSFF which has a table(tbl1).
    When the table is empty, if i collapse table's parent panel box i.e. pb1,
    n again expand it..,I see new row created in the table...
    I haven't put any code to create new blank row in table view object on collapse n expand of panel box...
    How to fix this issue..?
    JDEV vesion : 11.1.1.4.0
    Please reply...
    Thanks.

    Hi yaminip,
    Its not necessary to put the code in expand and collapse action of the panel box may it can be in different place
    and the table may refersh while u expand /collapse the panel box and new row came to visible.... keep break point in the EntityImpl Create method or ViewObjectImpl InsertRow method
    Find when its get fired........
    Regards,
    Suganth.G

  • New session is creating in ECC on each new window open

    Hi Experts,
    I have configured Transaction iViews to call the t-codes in ECC. I have only one portal user logged in one machine, but on right clicking on the link opening the new window without re login.
    But in the AL08 transaction I could see number of sessions created (equivalent to number of windows opened) which is creating the memory bottleneck .
    Is there any way  either restricting in opening the new window, or limit the number of sessions per user in EP/ECC.
    Thanks
    Murthy.

    Hi Puneet,
    Thanks for the reply.
    This note says to create service of type Web GUI. So for for what ever the Transaction iView I have, I have to create services first and then service iViews for all.
    Instead  of that either we can change the standard WebGUI service, so for all the Transaction iView of type Web GUI Html these properties applies, or if we can create a new service and specify the transaction iView to use the newly created service instead of WebGUI. But I don't know where to set this.
    For now I have added the below parameter to the WebGUI.
    ~WEBGUI     =1
    ~THEME =     sl
    ~RECORD=     1
    ~WEBGUI_SIMPLE_TOOLBAR =     160
    ~SINGLETRANSACTION=     1.
    Through this it will not let me open the window with right click.
    I haven't log any OSS message yet.
    Thanks
    Murthy

  • I have lost my tabs for the umpteenth time. Session restore only works if your kids hit the restore button. Otherwise, a new session gets started. FRUSTRATED!!!

    Even though I have my settings set to the "correct" settings to hopefully prevent the lost tabs problem, you still have to be careful in order to prevent the loss of tabs. I have lost all my research again and again... If for whatever reason FF gets closed the wrong way, and then the "restore session" button doesn't get clicked when you re-open, and then you happen to open any further tabs, suddenly you can never get back to all your previous tabs.
    I have scoured the internet for solutions to this problem, looked for ways to get them back, and ways to prevent this from occurring. I Have set my browser to the recommended settings. I have tried to restore my sessions. I don't understand WHY cannot the tab feature be made easy to save????
    I get all these tabs set up... and then, WHAM! suddenly they evaporate, never to be seen again.
    love the Tab system. It's visual. It's relatively easy to navigate. I don't forget they are there, and they are effortless to create...unlike bookmarks.
    Why in the world can't I give a tab group a name and then have it be permanently available, like a group of bookmarks that I can create and access at will?
    Why must it be that I have to search the internet for ways to restore them, and then the recommendations are geared only to computer literate people able to extract them from the bowels of their computer memory in some obscure and confusing procedure?!?
    I have looked at and installed numerous add-ons in the hopes of solving this problem and have not found a satisfactory solution. It seems like there are tons of other people out there who wish for this exact same thing, What is the hang-up with this???

    Firefox has the ability to bookmark all open tabs, in each window separately. It's not a "session manager", but if it's the same set of tabs you want opened at the same time all the time, you might consider using that feature.<br />
    Right-click a tab and select '''Bookmark All Tabs...''' and then give the folder a name. When you want to open all those tabs simply middle-click that folder or right-click that folder and select '''Open All in Tabs'''.
    As far as the "problem" you described...... <br />
    # You really should have a separate logon user account for your kids or for each of the other users of that PC, so they wouldn't be using your Firefox installation. That is a basic feature in Windows that goes back to the days of Windows 2000.
    # Firefox saves the previous session, but if that session isn't restored during the "current session" it is gone. That's the way it is designed to work. A temporary session save feature.
    # To save a session or multiple session try using a "session manager" extension to "extend" what comes with Firefox. Here's two extensions with a session manager feature for your consideration. <br />
    https://addons.mozilla.org/en-US/firefox/addon/session-manager/<br />
    https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/

  • New notes getting create on every new folders

    Hello,
    I have office 2010 professional installed on my work computer. When I create new folder Microsoft one Notes creates its new file 'Open Notebook' by itself.
    I want to stop it and delete all other files.
    Please help me.
    Thanks
    Sandip

    Hi Sandip,
    Do you mean the Open Notebook.onetoc2 file in each notebook folder?
    The Open Notebook.onetoc2 file will always be created with one notebook. It's not recommended to delete the file.
    The Open Notebook.onetoc2 file is a Microsoft OneNote index file that stores information about the order of note-taking sections. It is used to organize a collection of notes in a notebook. If the onetoc2 file is deleted, OneNote will
    display the notebook sections in alphabetical order, which the user can manually reorder.
    When you open a notebook folder, you will see the Open Notebook.onetoc2
    file and several .one files. The .one files are the sections in the notebook. You can try to double click a .one file and you'll notice that the whole notebook is opened. However, if you there is no
    Open Notebook.onetoc2 file found in the folder, when you click a .one file, it will only open the specific notebook Section.
    I hope I had explained it clearly.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Sessions getting created after tablespace is offline

    Hi all
    I am facing a situation where if I make SYSAUX tablespace offline, still session count keeps on increasing.
    Is that something expected?
    Thanks

    Thank you for your help.
    These are steps that can be done to reproduce the issue in Enterprise Edition
    SQL> select username,count(*) from v$session group by username;
    USERNAME COUNT(*)
    19
    SYSMAN 35
    DBSNMP 3
    SYS 1
    SQL> alter tablespace MGMT_TABLESPACE offline;
    Tablespace altered.
    Wait for some time
    Re run the query..
    SQL> select username,count(*) from v$session group by username;
    USERNAME COUNT(*)
    19
    SYSMAN 66
    DBSNMP 3
    SYS 1
    Hope it makes the issue clear.
    Thank you for your help.

  • 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

  • New weblogic cookie gets created - app is protected by SAM J2EE agent

    All
    We have installed J2EE agent 2.2 on Weblogic App server (8.1 SP6) fine..
    We get authenitcated against access manager while accessing a weblogic app, however it seems that
    we are going in a loop and a new weblogic session id is getting created every time
    We have the AMfilter as the 1st filter .. etc... We have deployed the SampleApp etc fine in the past
    We have checked the AMAgent.properties file etc..
    The weblogic app is in the same domain as our SAM server and the cookie domain is set fine...
    We can see that SAM cookie is used fine.. but it seems like the weblogic thinks its a new session
    and creates a new session cookie all the time
    Any ideas
    Thanks

    We got some new jar files for the agent and now the agent with the tomcat container is working as expected.

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

    I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
    A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
    // this will create a new session object if one doesn't already exist.
    HttpServletRequest.getSession( true );
    Hope this helps

Maybe you are looking for

  • Mini DisplayPort to DVI Adapter does detect all resolutions in Ext. Disp

    Think another EFI Update is in Order, Just used the Mini DisplayPort to DVI Adaptor to a NEC 3090WQxi Monitor and the Max Resolution is only 1600X1200, while my older (Late 2007) Macbook Pro needed an EFI update for Graphics before it detected the av

  • Is it possible to embed fonts in a pdf without all the tools?

    I'm preparing a book manuscript for publication (self-publishing/print-on-demand) -- and trying my best to do it on a shoestring budget of zero. It's ready to go. I designed the cover with Pages 2.0.2. The manuscript is in MS Word X for Mac. But...it

  • How to create a form on a table with 3 columns for a PK

    Hi All, We have a table that has 3 Columns that form the Primary Key and I would like to create a form based on that table; unfortuanately on the 'Create Form Page' there's only 2 options that identifies the first and second PK columns. Is there a wa

  • Print settings for photos for HP Photosmart 3180

    When I first hooked up the HP3180 I tried printing photos from iPhoto and could select 4x6 from the iPhoto Print window. I printed several photos easily. After my daughter had been using the MacBook for several weeks (wirelessly connecting to printer

  • Error during install PCK - Group GUESTS does not exist

    Hi, I'm installing PCK 3.0 SR1 on Web AS 6.40 Java SR1 and getting an error during phase "Create J2EE User". The following error is from the java.log file: --- INITIALIZE --- --- STARTING SETTING PROPERTIES --- --- STARTING USER CREATION --- com.sap.