Re: creating new HttpSession

IE is process-based. Ctrl-N does not create a new process, thus
non-persistent cookies are shared. Running it from the Start menu creates a
new process, so that IE gets its own non-persistent cookies. That matters
because WL (and most J2EE platforms) implement sessions using non-persistent
cookies.
Cameron Purdy
[email protected]
http://www.tangosol.com
WebLogic Consulting Available
"Leo Lam" <[email protected]> wrote in message
news:39bcf972$[email protected]..
I'm using a stateful session bean to maintain a client's state. I'mstoring
the
reference to my stateful session bean in the client's HttpSession. Is it
possible to create a new HttpSession whenever a new browser gets
created? I noticed that using ctrl-n in Internet Explorer creates a new
browser but not a new HttpSession but if I select Internet Explorer
from my start menu, then a new HttpSession gets created. I also noticed
that Netscape doesn't generate a new HttpSession regardless of how the
browser was created.

Yes u can store it as a Handle instead of ref..which is much more better..
This thread may be helpful
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.servlet&item=5330&utag=
zille wrote:
can u plz explain me that how can we store the reference to the stateful sessionbean to the httpsession i need urgent response plz

Similar Messages

  • Create new HttpSession exception

    I try to create a new session every time I enter in my login jsp, i do it like this:
    <%request.getSession().invalidate();
    HttpSession newSession = request.getSession(true); %>
    But I get the following exception:
    java.lang.IllegalStateException: getAttribute: La Sesi�n ya ha sido invalidada
         org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1032)
         org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:110)
         org.apache.struts.taglib.html.FormTag.renderToken(FormTag.java:570)
         org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:450)
         org.apache.jsp.web.pages.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:190)
         org.apache.jsp.web.pages.login_jsp._jspService(login_jsp.java:140)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Thanks in advance by your help.
    J.
    Edited by: jirujo on Jan 18, 2008 4:57 AM

    jirujo wrote:
    I try to create a new session every time I enter in my login jsp, i do it like this:Do that on logout only.

  • New HttpSession always created instead of re-used

    Hi,
              I've noticed there are a lot of questions about the use of HttpSessions
              in WL 5.1 and
              I'm also having problems.
              I have a servlet that is creating an HttpSession like this;
              HttpSession session = request.getSession(true);
              The first time I call this servlet it creates a new session - however in
              this servlet's
              page I allow the user to look at what is contained in their session
              object (their envelope
              of shopping items). Every time the user invokes the servlet again by
              selecting their
              'envelope' instead of looking in their current session object a new one
              is created.
              Therefore I can't maintain state of the servlet containing the envelope
              items.
              It sounds like other folks are having this problem as well. My servlet
              is in a web application.
              My weblogic.properties file has these entries;
              weblogic.httpd.session.enable=true
              weblogic.httpd.session.persistence=false
              // I've tried it with persistence=true also
              The problems with sessions occurs on both Netscape and IE although both
              of them
              have cookies enabled.
              Any ideas what the problem is? Is there some setting in
              weblogic.properties I need to
              add to get sessions to be persistent between servlet invocations?
              Thanks,
              Susan Cline
              [email protected]
              

    And does the servlet which is run from the envelope use getSession( true )?
              or getSession( false )?
              If you're using true all the time, you're destroying the session.
              "Susan Cline" <[email protected]> wrote in message
              news:[email protected]...
              > Hi,
              >
              > I've noticed there are a lot of questions about the use of HttpSessions
              > in WL 5.1 and
              > I'm also having problems.
              >
              > I have a servlet that is creating an HttpSession like this;
              >
              > HttpSession session = request.getSession(true);
              >
              > The first time I call this servlet it creates a new session - however in
              > this servlet's
              > page I allow the user to look at what is contained in their session
              > object (their envelope
              > of shopping items). Every time the user invokes the servlet again by
              > selecting their
              > 'envelope' instead of looking in their current session object a new one
              > is created.
              > Therefore I can't maintain state of the servlet containing the envelope
              > items.
              >
              > It sounds like other folks are having this problem as well. My servlet
              > is in a web application.
              > My weblogic.properties file has these entries;
              >
              > weblogic.httpd.session.enable=true
              > weblogic.httpd.session.persistence=false
              > // I've tried it with persistence=true also
              >
              > The problems with sessions occurs on both Netscape and IE although both
              > of them
              > have cookies enabled.
              >
              > Any ideas what the problem is? Is there some setting in
              > weblogic.properties I need to
              > add to get sessions to be persistent between servlet invocations?
              >
              > Thanks,
              >
              > Susan Cline
              > [email protected]
              >
              

  • When creating new track in stereo... track opens in mono in arrange window

    Since upgrading to 8.0.2...weird things are happening to previously saved projects. Stereo tracks are opening up mono and affecting following track. When creating new tracks in stereo.... tracks open mono. I don't know if this is due to 8.0.2 but all these freaky things have happening since. Also, when previewing Apple Loops, I can only hear it on one side, but Loops sounds fine once dragged to arrange window. Is this common or is my computer haunted ? Should I call Ghost Busters ? HELP !!! lol

    Hi there,
    I'm having the same problem as well: creating new tracks results in a mono software instrument, not the usual stereo software instrument. BUT... "Universal Track Mode" is already checked in my Audio prefs. I unchecked & rechecked it, but to no avail... I'm still only getting mono software instruments.
    Any other ideas? No changes have been made to my system, and I'm running the latest version of Logic Pro.
    Kirby

  • HT204053 I have one apple ID that my entire family has been using.  How do I create new apple ID's for each of us and move the appropriate content to each new ID from the original apple ID now that we all have our own devices?

    I have been using one apple ID for 4 family members.  Up until now it hasn't been a problem but now that we all have our own devices how do I create new apple ID's for each of us and them move the approprioate things from the original apple ID account to the new ones for each of us?

    stuartx4 wrote:
    Thanks Csound1, wish I have seperated everything from the beginning but when your kids are little and start buying music etc it just didn't seem like an issue.
    That has a familiar ring to it

  • Error while creating new user in Oracle 11i EBS

    I am getting following error while creating new user. How solve this issue?
    “Unable to load java class % specified profile option SIGNON_PASSWORD_CUSTOM. Please verify that the class exists and that it implements the java interface oracle.apps.fnd.security.PasswordValidation”.

    Following is the text from Note for Custom Password Validation logic:
    Customers who wish to use their own password validation logic may do
      so by writing their own Java classes that implement the
      oracle.apps.fnd.security.PasswordValidation Java interface.  The
      interface requires 3 methods to be implemented:
      1) public boolean validate(String user, String password)
        - This method takes a username and password, and then returns true
      or false, indicating whether the user's password is valid or invalid,
      respectively.
      2) public String getErrorStackMessageName()
        - This method returns the name of the message to display when the
      user's password is deemed invalid (i.e., the validate() method returns
      false).
      3) public String getErrorStackApplicationName()
        - This method returns the application shortname for the
      aforementioned error message.
      After writing the Java class to perform customized password
      validation, the customer must then set the value of the profile option
      SIGNON_PASSWORD_CUSTOM to be the full name of the class.  If, for
      example, the name of the Java class is
      oracle.apps.fnd.security.AppsPasswordValidation, then the value of the
      SIGNON_PASSWORD_CUSTOM profile option must be
      oracle.apps.fnd.security.AppsPasswordValidation.  Note that AOL/J
      will attempt to load this class dynamically.  Hence it is necessary to
      make the class accessible by AOL/J.  This means that in Forms, the
      class must first be loaded into the database using the loadjava
      command.
    You will need to apply the following patches for 11.5.1:
       1344802
       1363919
       1472974
       1351004
       1377615
    You will need to apply the following patches for 11.5.2:
       1377615

  • Error while creating New Responsibility

    Hi
    We have a R12 Instance. While defining a new responsibility I am getting a error as " ORA-01403: no data found, FRM-40735: ON-UPDATE trigger raised unhandled exception ORA--4063

    Hi,
    Please see these docs.
    FNDSCRSP - Creating New Responsibility Gives Errors FRM-40735 ORA-04068 [ID 239530.1
    ORA-01403 FRM-40735 WHEN-NEW-INSTANCE Trigger Raised Unhandled Exception ORA-06502 [ID 437087.1]
    Thanks,
    Hussein

  • HT5622 my i tunes id is not working......i try to create new id but it requires my visa card info....what should i do

    my i tunes id is not working......i try to create new id but it requires my visa card info....what should i do. how can i get my precious id or how can i create new id without giving visa information. i tried but there is no none option in visa card part

    What do you mean by 'my iTunes id is not working' ? Of you mean that it's disabled then you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    You might then need to log out of your account on your iOS deviced by tapping on your id in Settings > Store (Settings > iTunes & App Store on iOS 6+) and then log back in so as to 'refresh' the account on them.
    If that doesn't fix it then you might need to contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    If you mean something else ... ?
    In terms of creating a new account, there are instructions on this page for how to create one without giving credit card details : http://support.apple.com/kb/HT2534 - the instructions won't work with existing accounts, and any content that you bought/downloaded with your existing acocunt will remain tied to that existing account.

  • Unable to create new topics in RH 9 Word

    Since the switch from RH 5X to RH 9, new topics are not publishing.  Typically the title would always be preceded by charachters, ex. "* # $ K > @ Pacer Contacts," however, now when new topics are created the title formats differently, ex. "*loc_cnt #Test $Test +CONTACTS:0 KTest @Status|0|||0||Testing 123|||| Test."  Also, when I look at the properties of the new page, the Topic Title & the Topic ID are blank. 

    Hi David,
    No, unfortunately not.  I’m in the process of converting the projects to html and I can create new topics there.  I never really figured out why it suddenly stopped.  I hope you have better luck that I had.
    Best regards,
    Michelle Bosu
    American President Lines Ltd.
    JP & S Trainer
    APL-Moving Business Forward
    Visit us at www.apl.com

  • Unable to create new DC in NWDS on NWDI Track.

    Hello,
    I created a track for ESS/MSS customization and it is working fine.
    Now I need to add a SC in my track...
    In this new SC I will create the DC in NWDS for all custom development.
    So what I did :
    1. In NWDS I already imported the track. And working on modifications of ESS.
    2. I logged into SLD and created a new Product -> Software Unit and created my new SC in it.
    3. I log into CMS -> Landscape Configurator and under "track data" tab I added the SC.
    4. Now in NWDS I Updated the Configuration from selecting "Update Configuration". As a result my new SC comes in NWDS.
    5. Now I selected my new SC and select Create New DC...selected type as "web dyynpro"
    here the problem comes :
    When I clicks on "Finish" in Create DC Box..........I get below error :
    "DC Creation Finished with some problems"...
    Reason : Get Activity failed.
    Could not configure DC project; see log for details........
    From where I can see these logs...?
    And what could be the reason for this error...?
    have I missed some step ?

    Hi,
    well at this stage, since the problem is not reproducible any more it is difficult to say. It could have any temporary network issue(when contacting the server at that step "Get Activity"), it could be even a bug or any other reason. I know few details of your scenario, perhaps NWDS is not properly matching to the server from release point of view (cbs client in your NWDS vs. cbs release version at server side), just to mention couple of examples, but as mentioned from the info I have it is difficult to find out.
    You can look for this error in the log file and check the surrounding log entries. Perhaps when you face again this issue, let us know in this forum thread entry along with the discussed log file.
    Best Regards,
    Ervin

  • When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified

    When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?

    settings -> iTunes & App Store
    click on apple ID listed there
    select Sign Out
    sign in with the proper account
    from then on, when the store ask for your password it should be with the correct ID

  • What is the diffrence between extends and creating new object?

    HI ALL,
    what is the diffrence between extends and creating new object?
    meaning
    class base{
    class derived extends base{
    class base{
    class derived {
    derived(){
    base var = new base();
    can u people tell me diffence from the above examples.
    THANKS.
    ANANDA

    When you create a new object you have to supply the class to which that
    object belongs. A class can extend from another class. If it does so
    explicitly you can define the 'parent' class from which the class extends.
    If you don't explicitly mention anything, the class will implicitly extend
    from the absolute base class named 'Object'.
    Your example is a bit convoluted: when you create a Derived object,
    its constructor creates another object, i.e. an object from the class from
    which the Derived class extends.
    Extending from a class and creating an object don't have much in common.
    kind regards,
    Jos

  • Need Help to create new screen for RF Sapconsole

    Hi Guru's
    I'm new on RF (but some years in ABAP) since last week.
    I need help to create new screens for RF (SAPLLMOB).
    Can someone explain me the procedure to create screen (with ABAP code after) or perhaps someone have an exemple (simple or not) ?
    I have to develop 2 new screens with really few time.
    And, another subsidiary question :
    how SAP can transfert information between the flash gun and the screen i have developped.
    Is there some code to add to enable this functionality or it is include in SAPLLMOB on standard fields ????
    It's a new strange world for me today...
    Many thanks to everyone who can explain me
    Alain

    hi,
    I am facing this problem as well. Is there any reference to create the new screen?
    Hope someone can help! Thanks!
    Regards,
    Darren

  • Create New Field - Package is null and non editable

    7.0 when choosing the Create New Field in the UI, I get a window where the Package is empty and I can not edit it, the Namespace contains a Z and is not editable.
    I select ORDERADM_I but when I select OK I get the message the Package is Required.
    I am guessing I need to do something in EEWB? but not quite sure.  I did find any other forum questions with this issue.

    Hi,
    I assumed you are using Application Enhancement Tool.
    The prerequesite to use Application Enhancement Tool is you have to maintain the system settings in transaction AXTSYS.
    Here you can define a default value, which will be displayed in WebUI.
    Regards,
    Steve

  • How To Add Additional Fields When Creating New Contact From w/in Mac Mail?

    Hi there. When in Mac Mail and clicking on contact information provided within an email, we are able to either (1) CREATE NEW CONTACT or (2) ADD TO EXISTING CONTACT (by clicking on the arrow next to a phone number, address, etc.). If I choose "Create New Contact," how can I add additional fields BEFORE clicking on "Add to Address Book" button in lower right corner? Let's say, for example, I know this new contacts URL or company. (Currently, I am creating the new contact from within Mac Mail and then going to Address Book and finding the contact, then editing, the adding the additional fields, then saving, and then going back to Mac Mail. This all takes time.)
    Note: When creating a new iCal event from within Mac Mail, we can click on Option/Alt key when selecting drop-down arrow...and this will allow us to add additional information. The same feature isn't available for address book???

    I have the exact same question and problem. If there was a way to automatically open the AB entry after "creating new contact" this would solve it.
    Thanks for any suggestion

Maybe you are looking for

  • Hot spots to trigger image states in Apps

    I watched one of Terry White's videos on Adobe TV in which he used buttons (pins) on a map to reveal different images which were basically the different states of a multi-state object. He then output this to an iPad and everything worked fine. I've t

  • Playing a folder as a playlist in VLC possible like in Win?

    I've been looking for a way to easily watch entire folders of video files in VLC. Currently... the closest thing is to select a group of video files then right click and play in VLC. HOWEVER... this puts them all in a playlist but starts the playlist

  • Dbus session not starting up [solved]

    hi there! installed a clean arch system with gnome.... then I use "exec dbus-launch --exit-with-session /opt/gnome/bin/gnome-session" in my .xinitrc but dbus doesn't work I mean, it DOES start up, but it doesn't create any entry in the /tmp directory

  • Flex on top of SAP

    Hello Friends, Can anybody tell me pros and cons of using Flex on top of SAP Thanks in Advance, Pat

  • Printing a spool

    I experts, I created a spool with the NEW-PAGE PRINT ON/OFF instruction. I used the addiction PARAMETERS p_param where p_param is initialised with the GET_PRINT_PARAMETERS fonction module like this : Call Function 'GET_PRINT_PARAMETERS'         Expor