Questions on Sessions

Hi,
I have the following questions:
1>As I get to understand, session is maintained b/w one instance of the client browser and the web server. But if a child window is opened from the parent window which created the session, is the session shared/usable from that child window and the server.
2>If its possible what will happen if the parent window is closed while the child window is still open? Is the session becomes invalidated or is it still valid?
Thanks.

the session ends when you there are NO browses windows opened, not when you close an specific window or when 30 minutes has passesd since you started the session.

Similar Messages

  • General question re session timeouts

    we'd like to increase the session timeout for our portal from the default 20 min to 60 or so.
    recommendations from plumtree and microsoft suggest that increasing the session timeout (on the server - IIS) to beyond 20 minutes will be detrimental to performance and both advise against it.
    another option would be for users to change their page update settings (through my account -> display options) to say 15 minutes to provide a way of keeping the session alive.
    My question is, isn't this just as much as a performance drain as increasing the session timeout on the server?
    thanks
    Simon Dragicevich

    we'd like to increase the session timeout for our portal from the default 20 min to 60 or so.
    recommendations from plumtree and microsoft suggest that increasing the session timeout (on the server - IIS) to beyond 20 minutes will be detrimental to performance and both advise against it.
    another option would be for users to change their page update settings (through my account -> display options) to say 15 minutes to provide a way of keeping the session alive.
    My question is, isn't this just as much as a performance drain as increasing the session timeout on the server?
    thanks
    Simon Dragicevich

  • Question abt session and need advise in designing the project

    Hi,
    I am developing an application which searches for a particular document in some kind of database and returns the results and when the user clicks on one of the results, it should show the corresponding document from the db. Now I could get that functionality in my app. But my question is right now I am planning to store the document in temp folder and giving it back to the user for a particular session and am going to use a file name specific to the session and particular document for storing the docs.
    My questions:
    I want to delete the file after the session times out/user closes the window.How do I do that?
    And also please advise me if the whole thing is the right approach to achieve the functionality of the application considering the performance issues. I am using JSP and java classes right now.
    I am completely a beginner and was asked to develop this application on my own.
    Please help me out.
    Thanks

    javax.servlet.http.HttpSessionBindingListener
    or
    javax.servlet.http.HttpSessionListener
    The former, you have to create a class that implements that interface and store an instance of that class in the session and leave it there. When the session expires, the object is removed and valueUnbound() is called.
    The latter, you have to create a class that implements that interface and there's some way in the web.xml format to specify listeners (I forget offhand).

  • Question about session variables and binding

    Hi All,
    I'm a newbie with Application Express. I've gone through several tutorials and a book, and now I'm actually getting started with apex. My first adventure is a tiny little form, where all you do is fill it out and it sends an email. Pretty simple.
    And, i have it working just fine - but I have a question about something I don't quite understand. Basically, I am generating the email text in a page process. And some of the form fields work fine if i reference them as *:ACCT_NAME*, but some give me the dreaded "not all variables bound" error. For the ones that give me the error, I can reference them like V('ACCT_NAME').
    So, as a newbie, I'm a little confused. When is it appropriate to use the V function, and when it is appropriate to use binding? Why would one of the fields work with binding but not another from the same form?
    Thanks for any clarification you can offer,
    Lisa

    Lisa,
    A bind variable is a place holder variable available in an environment.It is used quite frequently(outside Apex Context) in SQL and PLSQL scripts and especially in Dynamic SQL statements.Many times using a bind variable gives better performance. In the Apex environment,page items and many other variables related to the session are available as bind variables and hence their value can be referred in SQL,PLSQL contexts as :VARIABLE_NAME.
    Now V() function is an apex specific function which returns the value of an apex session variable outside the apex environment. So as Machaan pointed out, it is used in
    procedures and triggers that gets called from within an apex session. This is required since the bind variables themselves are not directly available in the SQL environment but their values from the corresponding session can be accessed by this apex built-in function.
    The length of any Bind variable name is limited to 30 characters, this is a limitation inherited from Oracle SQL itself and hence session variables(page or application items) whose name has a length which exceeds 30 characters cannot be used as the :ITEM_NAME format. In such cases you would have to use the v() method again. This might be happening in your case.

  • What causes "Timed out server" in WL Cluster and a question about session in WL Cluster

              Hi.
              We are using Weblogic 5.1 with SP 8. We have been encountering a problem in our
              clustered environment. We setup our (clustered)environment to have 3 instances(WL1,
              WL2, WL3) of weblogic running in one box. When one instance, let say WL1, responds
              to a request(1st request for a session), the session is binded to that instance
              till the session is terminated/expired. Which means succeeding request for that
              session can only be served by WL1(we tried stopping WL1 but WL2 and WL3 wont accept
              the request--which only causes the page to time out). Shouldnt it behave in such
              a way that other instances can get serve the request(failover)?
              Also, occasionally we encounter "Time out server" in one of the instance of WL.
              When this happens, that instance no longer takes in requests. Would anyone know
              what causes "Time out server"? Does it only happen in clustered environment?
              Need some help ASAP.
              Tnx in adv.
              

              What do you have in front of WebLogic for Load Balancing?
              What are the IP addresses/hostnames of your three instances? What hostname are
              you using in your http requests? Is your DNS configured to do failover?
              Make sure that you have session replication turned on. See the edocs.bea.com.
              Mike Reiche
              "clstrproblem" <[email protected]> wrote:
              >
              >Hi.
              >
              >We are using Weblogic 5.1 with SP 8. We have been encountering a problem
              >in our
              >clustered environment. We setup our (clustered)environment to have 3
              >instances(WL1,
              >WL2, WL3) of weblogic running in one box. When one instance, let say
              >WL1, responds
              >to a request(1st request for a session), the session is binded to that
              >instance
              >till the session is terminated/expired. Which means succeeding request
              >for that
              >session can only be served by WL1(we tried stopping WL1 but WL2 and WL3
              >wont accept
              >the request--which only causes the page to time out). Shouldnt it behave
              >in such
              >a way that other instances can get serve the request(failover)?
              >
              >Also, occasionally we encounter "Time out server" in one of the instance
              >of WL.
              >When this happens, that instance no longer takes in requests. Would anyone
              >know
              >what causes "Time out server"? Does it only happen in clustered environment?
              >
              >
              >Need some help ASAP.
              >
              >Tnx in adv.
              >
              >
              >
              >
              >
              >
              >
              

  • Servlet Session Questions

    Hi,everybody:
    I'm puzzled by two questions about session in servlet.
    1.The default timeout of J2EE example WAR is set to 30sec.Is it too short?
    2.in J2EE Tutorial1.3 it says"To ensure that an active session is not timed-out, you should periodically access the session in service methods because this resets the session's time-to-live counter",But I can't see any codes in example servlets to access session "periodically".Could you please explain that?
    Thank you!

    I,
    I have a problem with the session.
    After the "getMaxInactiveInterval" time, I reload my servlet , but
    the session is lost even if I test it :
    Before doing anything, I do this :
    HttpSession oSession = req.getSession (=(false);
         if(oSession == null)
    // forward to a login_page
    RequestDispatcher rd = getServletContext().getRequestDispatcher(
    "login_page");
    rd.forward(req, res);
    // request to the database to get user'characteristics
    // and put then in the session
    String sUser = (String)oSession.getValue("COD"); // sUser is null !
    The pb is that the session has not been removed from the Server after
    the MaxInactiveInterval, so when i make a request , I have in the session :
    the req.isRequestedSessionIdValid() gives : true .
    and a new session is created with a new id
    Something very strange.
    Thanks for help.

  • How can I delete a corrupted old sessionstore file (it's affecting my restore session feature)?

    On 2/29/12, Windows reported that sessionstore-38.js was corruput and unreadable and requested I run CHKDSK. I run it but this file was not deleted. Also, it has resulted in my Firefox session restores to be "frozen" (same windows and tabs) to back on 2/29 when this bad file situation started on 2/29/12. I've even tried using new sessions but Firefox constantly reverts back to the old set of windows and tabs from 2/29 whenever the session drops. Help me please!!!

    Numbers in sessionstore file names can indicate that Firefox had a problem replacing your old session file with a new one.
    The quickest way to open your profile folder is
    Help > Troubleshooting Information > "Open Containing Folder" button
    Once the folder is open, you might need to close Firefox before proceeding.
    Please read the solution from cor-el in this thread before deleting any files: [https://support.mozilla.org/en-US/questions/901885 session restore issues | Firefox Support Forum | Firefox Help].

  • Again Session-Handling

    Hi there, one question about session-handling in JSP.
    I'm trying to set attributes in the JSP and afterwards get them back.
    No chance! They always vanish! Here is the code:
    <%@page contentType="text/html"%>
    <%@page import="java.util.*"%>
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <%
    // Output of Session-Attributes
    for (Enumeration enum=session.getAttributeNames();enum.hasMoreElements();)
    String name2 = (String)enum.nextElement();
    String value2 = (String)session.getAttribute(name2);
    out.println(name2+":"+value2);
    // Set Attributes that I get from Form!
    String name = request.getParameter("name");
    String value = request.getParameter("value");
    if (name!=null)
    session.setAttribute(name,value);
    %>
    <form action="SessionTest.jsp" method=get>
    <input type=text name=name>
    <input type=text name=value>
    <input type=submit>
    </form>
    </body>
    </html>
    Really dont have a clue!
    Thx, ToM

    Works ok for me:
    Couple of suggestions: put the setting code, before the display code.
    That way you will see the pair that you just set in session ;-)
    Also try this:
    Session id = <%= session.getId() %> and see if it stays the same.
    If you are getting a different session every time, then its not maintaining the session.
    Common cause of session problem is: cookies are turned off.
    Either turn cookies on, or use URL rewriting:
    <form action="<%= response.encodeURL("SessionTest.jsp") %>">
    <%@page contentType="text/html"%>
    <%@page import="java.util.*"%>
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <%
    // Set Attributes that I get from Form!
    String name = request.getParameter("name");
    String value = request.getParameter("value");
    if (name!=null)
    session.setAttribute(name,value);
    // Output of Session-Attributes
    for (Enumeration enum=session.getAttributeNames();enum.hasMoreElements();)
    String name2 = (String)enum.nextElement();
    String value2 = (String)session.getAttribute(name2);
    out.println(name2+":"+value2 + "<br>");
    %>
    <form action="SessionTest.jsp" method=get>
    <input type=text name=name>
    <input type=text name=value>
    <input type=submit>
    </form>
    </body>
    </html>Cheers,
    evnafets

  • Sessions in a multi-server env...

    Hi guys, I have a question concerning sessions in a multi-server environment...
    The scenario is this-- There is hardware-based load balancer distributing across two or more webservers, which tie into a central database...
    My question is, what is the accepted way to propogate sessions from one webserver to the next? What I mean is, if the user hits webserver A and starts a session and the next request happens to get routed to webserver B, how can webserver B access the session that was started on webserver A?
    The immediate application of this would be to keep a user "logged in" or shopping cart ability.
    I have a few ideas but would like to hear yours before I taint the discussion :)
    I'm very sorry if this has been discussed before, but I did search and did not find what I was looking for (searching for "Session" isnt very helpful...)
    Thanks a bunch!

    The big application servers from ATG, BEA and IBM handles this in roughly the same way.
    You have several app.server instances handling user requests. In front of these you have an app.server instance in "load balancer mode" which dispatches incoming requests in ongiong sessions to the app. server instance the session is located on, and dispatches requests for new sessions to the least busy app. server.
    This is all fine until one of the app. servers breaks down, is taken offline for maintenance or suffers network or hardware failure. The better application servers are capable of making the sessions that ran on the downed app. server instance move to another app. server instance. To facilitate this, the content of all sessions are constantly being mirrored to another app. server than the one handling the session. This is done by means of serialization. In this way sessions can continue running uninterupted even if the app. server that handled them goes down with no warning.
    It's facilities like this that makes it worthwhile to pay the premium prices for ATG Dynamo, BEA WebLogic and IBM WebSphere over application servers like tomcat.
    One of the niftier setups I have seen was made with four SUN boxes in as many countries, each running a localized version of a news service website. These servers acted as session mirrors for each other, So whenever one of the national servers went down, the traffic and the live sessions were moved to one of the other servers.

  • ADF Best Practice : About user session management in ADF BC

    Hi,
    I'm using ADF BC and I want to manage information specific to a particular user.
    In the developer's guide at §9.10 it is advised to use APIs relative to DBTransaction class through the getSession and getUserData methods.
    I have several questions :
    * are Session objects returned by ApplicationModuleImpl.getSession() and DBTransaction.getSession() the same ?
    * is it safe to manage user information by using the map returned by the oracle.adf.share.ADFContext.getSessionScope() method ?
    * finally, which is the recommended approach and what are the caveats of each ?
    Thanks a lot,
    Seb.

    Here is the code fragment :
       * Return the jhsUser object.
       * For this method to return an object, the user object must have called setUser
       * on the application module
      public Object getUser()
        Object user = ADFContext.getCurrent().getSessionScope().get(JhsUser.JHS_USER_KEY);
        if (user!=null)
          return user;
        // code below for backwards compatibility
        if (getSession()==null)
          return null;
        return getSession().getUserData().get(JhsUser.JHS_USER_KEY);
       * Stores user object as am session userdata.
       * @deprecated user is now retrieved using pull meachnism with ADFContext, instead of
       * push.
      public void setUser(Object user)
        getSession().getUserData().put(JhsUser.JHS_USER_KEY, user);
      }Notice the deprecated method setUser.
    Seb.

  • Session management in JAX-RCP with JWSDP 1.0_01

    Hi all,
    How can I access to the HTTP Session of the TOMCAT which run the Web Services engine?
    Browsing by the API I've found the method getHttpSession() in the interface javax.xmlrpc.server.ServletEndpointContext.
    How can get an instance which implements this interface?
    Regards,
    C�sar.

    An old thread but I have a question re session management and web services.
    The documentation for ServletEndpointContext says getHttpSession returns null if there is no HTTP session currently active and associated with the service endpoint. It further says the endpoint class should not rely on the HTTP session always being there.
    I need to ensure a session is active after a user successfully logs in. Other than spending alot of time implementing session management myself its the only way to tell whether the service requestor is allowed to use the service. Is the session not guaranteed to be active to take account of things like session timeout? Under normal circumstances where the user is sufficiently active to prevent timeout is it reasonable to assume the session will be there?

  • Session in clustering

    Hi all,
              I am using WLS5.1 on Win-NT4.0 with SP6a.
              I have following question about session-id maintanence across clustering.
              We have developed a weblog, which logs information like
              session-id,username,password etc....
              What i want to know is if I use clustering with one instance on each
              machine, during failover and load balancing condition. now both the
              instances will have it's own different log files right??
              1)Will there be only one session id across both the instances and say
              suppose if one weblogic server fails and other takes over will it have the
              same session id?
              2)If answer to question one is no, then Can one session with an unique
              session id be split among the multiple web logs?
              Thanks.
              Rgds,
              Arpit Doshi
              

    Check the previous one you posted for answers.
              -- Prasad
              Arpit Doshi wrote:
              > Hi all,
              >
              > I am using WLS5.1 on Win-NT4.0 with SP6a.
              >
              > I have following question about session-id maintanence across clustering.
              >
              > We have developed a weblog, which logs information like
              > session-id,username,password etc....
              >
              > What i want to know is if I use clustering with one instance on each
              > machine, during failover and load balancing condition. now both the
              > instances will have it's own different log files right??
              >
              > 1)Will there be only one session id across both the instances and say
              > suppose if one weblogic server fails and other takes over will it have the
              > same session id?
              >
              > 2)If answer to question one is no, then Can one session with an unique
              > session id be split among the multiple web logs?
              >
              > Thanks.
              >
              > Rgds,
              > Arpit Doshi
              

  • Value-list handler, value-list iterator and session-facade strategy

    Hello all,
    Further to an earlier post, I rewrote my post trying to me more accurate in my question.
    Here is my problem:
    I am trying to implement the value-list handler design pattern using the session facade strategy. In the pattern as it is described here
    (http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html) the client accesses the value-list handler AND the iterator directly.
    As I chose the session-facade strategy having my value-list handler as a stateful session ejb, I don't know how the client is going to access the iterator. I see only one option: Having the client access the iterator through the ejb value-list handler. This requires adding new methods to the ejb.
    Is this the correct way of doing it? Is there another way of doing this?
    Thanks in advance,
    Julien Martin.

    u can use project list handler as ur session facade.
    regarding ur second question ..session facade and value list handler session bean which is also a session facade( but there is difference between first and second) so u can use session facade and value listhandler

  • A auik question

    HI
    I'm new to J2EE. I had a question which session bean is faster or which one is better, Stateless or Statefull.I don't know if it might be 2 diff questions.
    plz comment

    The question isn't whether one is faster or better, but which is appropriate
    http://www-106.ibm.com/developerworks/websphere/library/techarticles/0008_brown/0008_brown.html

  • Session scope/Database connection

    Hi y'all!
    I got some questions about session scope and database connections:
    I'm using a bean called dataBase. With this bean i open a database connection and execute some sql statements. the bean has page-scope, which means, as far as i know, the bean will be destroyed after the user leaves the current page.
    but what happens with my dataBase connection?!? could it be possible that it is still active after the bean was destroyed? so should i close my database connection manually or will it close automatically when the bean is beeing destroyed?
    thanks for your help!

    You should explicitly close the connection. One way is to use the finally clause to ensure that the connection is closed even if your code throws an exception.

Maybe you are looking for

  • How do I add validation to a system-generated Selection Screen?

    As HR ABAPers know, using the Logical Database approach (I'm using PNPCE) gives you a system-generated Selection Screen.  Part of the specs I have for this report involves making sure that the begin and end dates for the period selected are for a two

  • How to keep A3 library stored in different locations in sync.

    Hello, I use referenced files, however, even having relatively small previews stored within A3, one of my libraries is over  34GB. Main library is stored on MP. However, to do images selection, sorting, key-wording, etc. whenever I have free time and

  • What is "CleanLibrary" in a users profile folder?

    Lately with new 10.8/10.9 OS Macs we've been seeing a folder called "CleanLibrary" rather than the hidden library file for users that have hosted Home folders on a 10.8 server.  What is this, why don't they have the standard Library folder and why is

  • Problem touch screen IdeaPad U330

    Hi! I know this problem might be posted before, but I couldn't find it.. So I'm trying it this way. Since a few weeks my Lenovo IdeaPad u330 has a problem with the touch screen. When I start my laptop, it works perfectly, but after a few minutes - or

  • Query using Union All and CTEs is slow

    TypePatient [ednum] int NOT NULL,  PK [BackgroundID] int NOT NULL, FK [Patient_No] varchar(50) NULL, FK [Last_Name] varchar(30) NULL, [First_Name] varchar(30) NULL, [ADateTime] datetime NULL, Treat [ID] int NOT NULL, PK [Ednum] numeric(10, 0) NOT NUL