HTTP session sharing

Hi,
We have a need for session sharing among the different JVMs and have been trying the application cluster functionality with zero luck. Now we are thinking of looking into coherence because by reading the documentation we came to know this is something we could accomplish it. Since being a very new on this, have anyone done this and if you have can we get some information on how to do it. We will really appreciate your help on this.
Thanks,
Raj

To better understand the background of your root problem,
1) which Application Server product are you using?
2) the term "clustering" may mean different things to different App Server implementations. Does your reference to clustering also mean "Http Session Replication" has been specifically enabled, or that by simply clustering JVMs you expect this to happen automatically?
3) is access to the session needed by the same web app or different web apps in the JVMs?

Similar Messages

  • Session sharing again

    Hi all,
    A problem with a slight difference from the one just posted by vakkanti about http-session sharing.
    In our servlet/JSP application the users can of course open a new window within their browser.
    The problem is that both windows are now using the same HTTP-session because the other session has not yet been invalidated and that gives problems in the use of session variables etc.. How can I force that the the new window is using a new session? Or otherwise at least deal elegantly with this problem. It must be a well known problem I think.
    Regards,
    Ronald

    Hello Ronald,
    I do not thinnk that is a 'J2EE issue' in the sense this is the way browser reacts. When you open a new window you are in the same context in term of cookie, session, etc etc. All container will react the same way with a new opened window.
    The only way that I now to have multiple windows and different sessions is:
    - on Internet Explorer and with creatin a new process by running IE (Clicking or run command) not with the File>New window , or any links.
    Could you explain why you need multiple session in different window? What is the businness requirement of your application? (we may be able to find a work around, since the behavior your expect is not supported by browsers)
    Regards
    Tugdual Grall

  • Sharing HTTP session on multiple logins

    If two users login into an application with same credentials and from different browsers can i use same http session to handle both the clients.
    My objective is how many ever users login with same credentials we use same session to handle them.
    I do not want to stop multiple login with same credentials.

    Associate the data with the logged in user instead of the session then.

  • Load balancing and session sharing

    Hi,
    in my company we have the following situation:
    We have 2 instances of the same web application on differend servers.
    An external load balancer (Alteon) routes the requests to these instances.
    The problem:
    If one instance is shutting down, all the sessions of this app are gone. These users has to login again.
    The question:
    Is it possible to avoid this?
    Is is possible to keep these session, so the users don't have to login again?
    Maybe with a kind of session sharing between these 2 instances?
    using:
    oc4j standalone - 10.1.3.1
    OS: Windows
    thank you
    Marcus

    The solution:
    Multicast IP replication is the default replication protocol used in a standalone OC4J installation
    see: http://download.oracle.com/docs/cd/B32110_01/web.1013/b28950/cluster.htm#BABBHGHJ
    -> Configuring Multicast Replication

  • Http sessions not equal

    Hi,
    I  have two portal servers setup as Netweaver 2004 (Java) SPS20 with each physcial server having 2 servers processes each. I realised that the http sessions are not quite balanced as below:
    Physical server 1:
    (a) Server 0- 300 http sessions
    (b) Server 1 - 250 http sessions
    Physical server 2:
    (a) Server 0- 30 http sessions
    (b) Server 1 - 25 http sessions
    Who could have gone wrong?
    Please advise.
    regards,
    PoolReds

    PoolRed,
    Can you check your Loadbalancer whether it is properly configured for Load sharing or not?
    Which Loadbalancer you are using?
    Web Dispatcher or other Hardware based Load Balancer?
    Regards,
    Karthick

  • Does Session Sharing feature provided by SAP Net Weaver application server

    Hi All,
    Session Sharing is an additional feature provided by Tomcat , Weblogic  and Web sphere application servers.
    Is this feature available in  SAP Net Weaver application server?
    Brief description on Session Sharing
    Session Sharing  specifies whether HTTP sessions are shared across multiple Web applications.
    In Weblogic this is an optional feature customizable in weblolgic-application.xml
    Sample weblogic-application.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-application xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session-descriptor>
          <persistent-store-type>replicated_if_clustered</persistent-store-type>
          <sharing-enabled>true</sharing-enabled>
    </session-descriptor>
    </weblogic-application>
    session-descriptor (Optional Element ) - Specifies a list of configuration parameters for servlet sessions.
    sharing-enabled (Optional Element ) - Specifies whether HTTP sessions are shared across multiple Web applications. Default value is false.
    Thanks in advance.
    Regard's
    Srikanth
    Edited by: Srikanth A on May 14, 2010 7:36 PM

    Hi,
    You cannot set up Garbage collection frequency. it is internally handled by Java when the Heap size is filled up.
    You can always fine tune your server to SAP recommendations.
    Note 723909 is a good starting point.
    Also other checks include that you use SAP recommended Java versions, OS patches and also that you have enough physical memory.
    Thanks & Regards,
    Vijith

  • Share http session across multiple EARs

    I am curious to know the following:-
    --> is it possible to share http session across multiple EARs running on same Weblogic application server.
    i.e weblogic server/Jboss
    --> is it possible to share http session across multiple EARs running on different Weblogic application server.
    i.e weblogic server/Jboss
    Please share the steps/way to acheive the same.

    What are you trying to achieve / accomplish by splitting it up?
    e.g. Clean Build in workshop will be faster for multiple EAR's , but unless you have all your application level libraries as shared libraries you might increase your runtime footprint. or you might want independent deploy/redeploy for your apps etc.
    If however you need the session to be shared , that these aren't really independent web-applications and shouldn't be separate ear's. In most cases though you dont actually need the session as shared (e.g. a user's data is fetched from the database , you dont really need the session shared, you need a single shared sign on). So when you say is the session shared, what is the data that you need shared? should it be in the session in the first place?
    And finally are these webapp's really independent (functionally ) or not?
    Edited by: deepshet on Oct 13, 2009 2:09 PM

  • Http session object in portal

    Hi,
    I am working on weblogic portal 9.2
    I am seeing some weird behavior while handling http session object.
    I have a desktop contains 2 page flow portlet and 1 Jsp/Html portlet.
    On Portal Admin I have created 2 differennt desktop as below.
    1.http://localhost:7001/Test/appmanager/desk/desk1
    2.http://localhost:7001/Test/appmanager/desk/desk2
    Desktop 1 will put some value in session but when I am running the other desktop i.e. desk2 then desk2 is receiving the same session value that desktop 1 put.. Not sure why?
    Generally for every desktop URL new Http Session should be created. But in my Case old session is sharing between 2 desktop.
    Java code
    HttpSession session = request.getSession(false);
    session.getAttribute("");
    JSP
    <%@ page session="false"%>
    In non Portal application, we can have control to all the href but in case of Portal we are getting data from content management that provides href.
    Edited by: user11311969 on Oct 9, 2009 4:58 AM
    Edited by: user11311969 on Oct 9, 2009 5:23 AM

    Hi,
    Thanks for the replay.
    You are right If I add desktop name in session then atleast I can insure that correct desktop is fetching the session value.
    Ok But while rending both the desktop there is common code that put some values in session.
    Let say Desktop1 put "name = Desktop1" and "Value = "MyDesktop" in session.
    After that I run Desktop2, that will put "name = Desktop2" and "Value = "OtherDesktop " in session.
    i.e when I run Desktop1, then I should get "name = Desktop1" and "Value = "MyDesktop "
    when I run Desktop2, then I should get "name = Desktop2" and "Value = "OtherDesktop "
    If I click any link on Desktop1 then i will get "name = Desktop2" and "Value = "OtherDesktop " because Desktop2 has already overwrite the session value.
    How can I solve this?

  • How to close a HTTP session when a user closes the window

    Hi,
    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template and this was implimented on the Menu page, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly.
    If user navigates to the other pages from the main page... then the logoff function was not implimented in the other pages. So many of the users are closing the windows directly. Eevn if we impliment logoff in all the subpages, As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.
    Regards,
    Tony

    Hi,
    And also take a look on the Genral property of the web template. We solved this problem by changing only this property (no extra things).
    <b>Property:                            Value</b>
    Automatic Session Management:           Active
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by: Anil Kumar Sharma

  • Bw web report plugin http session hangs at the server side

    Hi,
    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly. But As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.
    By the way, we actived our BEX service at the SICF.
    Thanks for help!
    JA

    Hi
    If you want to avoid a blank page with logoff button, add opener=0
    <a href="<SAP_BW_URL CMD='LOG_OFF' ~command='logoff'
    >" onClick="javascript:window.close(opener=0);">Log off</a>
    If you want to close the session via X, use this code:
    create a sapscript function
    function closeSession()
    logoff()
    window.unload=CloseSession()
    However, the Plugin HTTP session isn't killed.
    Regards

  • In-memory replication of http session is not working in BEA7 cluster

              Hi everyone,
              I have 3 managed servers in Bea7.0 SP4 in a cluster. The client requests are sent
              through apache web server. I have given cluster address as URL in httpd.conf of
              apache server which sends the client requests for dynamic pages such as JSPs and
              servlets to the weblogic cluster.
              Load balancing is working fine. I ensured this from the log files of all the 3
              servers. All the 3 servers are getting different client requests and thus load
              balancing is working.
              Now, I wanted to achieve Fail-over. I do not think that i should use proxy plug-in
              for this. I feel the cluster itself will handle fail-over provided i make the
              http session as memory replicated.
              I updated the weblogic.xml with the following entry :
              <session-descriptor>
              <param-name>PersistentStoreType</param-name>
              <param-value>replicated</param-value>
              </session-param>
              </session-descriptor>
              I guess this is sufficient to make the http session as cluster aware.
              But when I shutdown server1, the user connected to server1 will be kicked out
              of the session and come to login page through server2 or server3 which are running
              fine.
              Could anyone help me to achieve http session as cluster aware. Does it indicate
              that I have to go for WLS proxy – HttpClusterServlet to achieve fail over for
              http session ?
              BTW, for your info, i am using setAttribute() and getAttribute() while manipulating
              the session.
              thanks in advance.
              

              Hi Ryan,
              Thanks for ur valuable input.
              I can see failover working.
              But, I can not continue with the same session in my application.
              I printed session Ids before and after failover, I found both are different.
              I guess session replication is a responsibility of weblogic/apache plugin.
              If not please let me know which all settings I should do to make failover working?
              Thanks again.
              Plad
              "ryan upton" <ryanjupton at learningvoyage dot com> wrote:
              >Plad,
              >
              >Are you trying to gracefully shut down the server? If you are then the
              >problem that you say you can't identify is simply the server's default
              >behavior which is to wait for all non-replicated sessions to be dropped
              >or
              >timed out before killing the process. Try forcing the shutdown: kill
              >-9 the
              >PID or CTRL-C if you started the server from the command line. You can
              >also
              >check the ``Ignore Sessions During Shutdown" checkbox under the server's
              >control tab in the admin console, this should allow you to shut down
              >gracefully without waiting for session timeout. BTW your sequence is
              >off
              >in #5 below, the replication doesn't occur upon failure, the replication
              >has
              >already happened once you created the session object on the first server,
              >I
              >think maybe you're confusing replication with failover.
              >
              >~RU
              >
              >"Plad" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Hi,
              >> I have 2 managed servers in a cluster.
              >>
              >> 1. I have got a DNS name configured which maps to these 2 managed server's
              >IP
              >> addresses.
              >> 2. I can browse my site using this DNS name.
              >> In HTTPD.conf I have :
              >>
              >> ServerName dev.a.b.net
              >>
              >> <IfModule mod_weblogic.c>
              >> WebLogicCluster 10.1.38.232:7023,10.1.34.51:7023
              >> MatchExpression *.*
              >> </IfModule>
              >>
              >> LoadModule weblogic_module modules/mod_wl_20.so
              >>
              >> 3. I have adeded session descriptor in weblogic.xml , also enabled
              >proxy
              >plugin
              >> in weblogic console.
              >>
              >> 4. I tested accessing my application using DNS url after shutting down
              >alternatively
              >> each manaed server. I can access application.
              >>
              >> 5. Now, problem comes when I access a managed server1 , keeping server2
              >down.
              >> I am able to access my application.
              >> Now, I start the server2.
              >> (Here I am supposing that replication should occur)
              >> Then I am shutting down server1.
              >> But, this time the server log shows me following:
              >>
              >>
              >> 9:58:51 AM GMT+05:30 NOTICE Web application(s) chlist still have
              >non-replicated
              >> sessions after 2 minutes of initiating SUSPEND. Waiting for non-replicated
              >sessions
              >> to finish.
              >> 10:00:51 AM GMT+05:30 NOTICE Web application(s) chlist still have
              >non-replicated
              >> sessions after 4 minutes of initiating SUSPEND. Waiting for non-replicated
              >sessions
              >> to finish.
              >>
              >> I am unable to make out where the problem is?
              >> Can it be a problem of Liecense? Is there any specialcluster liecense
              >for
              >weblogic8?
              >>
              >> Hoping to get replies.
              >> Thanx.
              >> Plad
              >>
              >> "ryan upton" <ryanjupton at learningvoyage dot com> wrote:
              >> >See my reply to your first post, but I've also added a few comments
              >here.
              >> >
              >> >"jyothi" <[email protected]> wrote in message
              >> >news:[email protected]...
              >> >>
              >> >> I guess someone from bea support team only can answer both your
              >question
              >> >and mine.
              >> >> As per my knowledge, we do not need to do any setup at Apache
              >side
              >> >regarding
              >> >> cluster other than mentioning cluster address as URL while
              >contacting
              >> >WLS
              >> >> from apache.
              >> >>
              >> >> I hope someone from Bea, will help us. I do not think that we
              >> >go for
              >> >WLS
              >> >> proxy plug-in using HttpClusterServlet for making session replication.
              >> > I
              >> >strongly
              >> >> feel that the cluster itself be able to manage the fail-over of
              >> >http
              >> >sessions
              >> >> provided we put the entry "PersistentStoreType" in weblogic.xml
              >> >regarding
              >> >> the session replication.
              >> >>
              >> >
              >> >The cluster does handle the management of Sessions. The clustered
              >> >applications still create the Session objects and the cluster manages
              >> >them
              >> >as per your deployment descriptor settings (replicated, JDBC, File)
              >however
              >> >the proxy has to be aware of which server the client has an affinity
              >> >for
              >> >(only with replicated sessions) and it does that by reading a cookie
              >> >passed
              >> >back from the server that handled the initial request and created
              >the
              >> >primary session object. The proxy has a list of both the primary
              >and
              >> >secondary server locations from this cookie that it can use to failover
              >> >the
              >> >request if the primary server fails. Clusters _DO NOT_ failover nor
              >> >do they
              >> >load balance, that's the job of your proxy, whether you're using the
              >> >HTTPClusterServlet, WLS Plug-in or a more sophisticated hardware load
              >> >balancer like Big IPs F5
              >> >
              >> >> jyothi
              >> >>
              >> >
              >> >~RU
              >> >
              >> >
              >>
              >
              >
              

  • How to find the list of users loggin through HTTP session

    Hi All,
    we are using SRM 5.5 system with ITS. I am able to find the list of concurrent users from ABAP level using report "CCUEVAL" but how do I know the list of concurrent users logged in from HTTP session?.
    could you please let us know the SAP note number or any report?
    Thanks in advance,
    Mohan Karri

    Hi Uday,
    thank you very much for your prompt response.
    I need a report because by end of every month I would need the average peak http users list for the reporting month.
    or tell me how to find " how many users logged in through HTTP session in a day?"
    Thanks
    Mohan

  • How to get HTTP session in Applcation Module IMPL file

    Hi Guys,
    Can any one tell me how to get HTTP session in Applcation Module IMPL file ?
    thnks

    You can, but that's not a best practice.
    Re: How to reach HttpContext from model Project

  • Define HTTP Session Attribute in a Custom Authenticator

    Hello everyone I developed sucessefully a Custom Authenticator for WLS10 that interacts with a web service.
    But now I need to provide an object to the web applications with the some user information.
    I was wondering defining the object in the HTTP Session but I dont know how to do it via de LoginModule of the custom authenticator.
    Can anyone provide me some tips?
    thanks in advance.

    What kind of user information do you need to pass on to the webapplication ? username can be retrieved by request.getRemoteUser() (after successful login).
    May be you need to clarify little bit more on what you want to achieve.
    -Utpal

  • Dynamic reloading in iWS 6.0 causes my http session to be lost

    Hi,
    I have a problem with dynamic reloading in iWS 6.0 Sp2 on Solaris 8. I have not set the reload-interval for the class-loader, in fact i haven't included anything related to the classloader in the web-apps.xml file.
    The default behaviour is observed, the classes are reloaded every 30 seconds. So far, so good.
    I have seen that if a change a class, iWS reloads the entire application, destroying all the servlets in it. This destroys my HTTP session.
    The same behaviour is observed in a redeployment, and in a reloading of config files.
    Is there any way of avoiding this?
    Thanks.
    By the way, could anyone describe the classloader architecture of iWS.
    Juan

    Scott,
    Does the problem only occur on MSIE clients? Do this work properly on Communicator? If so, you may be running into a problem with how MSIE determines the maxage for a cookie.
    The criteria that IE uses for creating a new session is the length of time that a session has been alive. For this reason, when a user tries to connect to a web application on the iWS webserver through IE, the time on the client server and on the webserver must be set correctly. Otherwise, the user could experience problems with session data getting lost or discarded by the client.
    This problem does not occur on Netscape browsers, as Netscape browsers set the cookie using the client-side clock and the maxage sent by the server.
    Refer to this technote and see if the helps:
    http://knowledgebase.iplanet.com/ikb/kb/articles/4704.html

Maybe you are looking for

  • Ipod error message when updating songs

    I am reoccurantly having the same problem when trying to update my ipod mini. It displays the message : ERROR THIS FILE CANNOT BE READ FROM OR TO. I would be very grateful if anyone can help me sort out this problem Thanks toshiba   Windows XP  

  • How do i make it so it ask me to save all open tabs when i close firefox.

    it use to do this automatically when i had the old Firefox but now it never ask i like this feature and would like to know were it is hidden in new Firefox or if it is no longer available is there a add-on that does the same thing

  • Calendar invites not showing up in icloud email

    Hi all - I gave my son an 8GB 4th gen iPod Touch this week and went about setting it up for him. I got him an icloud email address and started sending calendar invites from my .mac address along with my wife's gmail address. None of these calendar in

  • No thumbnail photo preview in Filter CS4

    Howdy: Started using CS4 Extended but have a problem with the Filter function.  When I used CS2 and went to Filter/Sharpen/Unsharp Mask I got a thumbnail image of the photo that would preview the changes the feature would make before clicking OK.  No

  • How do i move images without a "build"

    hello all, i have a problem, i am trying to move an image from the center to the top right corner and scale it, much like the scale build effect, however i dont want it to be a build i still want the image to remain on screen. i will use the build ou