Passing Session info between servlets

We are running WebLogic 5.1, sp 4 and Apache 1.3 on Solaris 2.6 and we are
          successfully proxying requests to the server. But we are unable to pass
          session information between servlets. We are NOT using URL encoding. We are
          instead using cookies. We believe our configuration is correct because the
          BEA example session servlet works. Does anyone have any recommendations or
          suggestions?
          Thank you,
          Jorge
          Jorge A. Martin
          Systems Analyst
          The Kinetic Group
          1950 Stemmons Freeway, Suite 3040
          Dallas, Texas 75207
          

This is a basic misunderstanding of how Java Works:
String name +r = request.getParameter(name +r);1) You can't use a + on the left part of an assignment operation - it must be a plain variable reference. This isn't like JavaScript where you have an eval(...) capability.
2) Your Strings are being defined inside the For Loop, which means they will leave scope once the loop ends and you won't be able to refer to them anymore.
3) Is there already a String value named 'name' which you are using in getParameters(name+r)? You should probably use getParameter("name"+r) instead.
What you want to do is either put the values in an array so they are easy to access:
String name[] = new String[value1];Then loop through the parameters to assign values:
for(int r = 0; r< value1; r++) { //Start at 0 to value1-1 because arrays are 0 based.
  String nameParam = "name"+ (r+1);
  name[r] = request.getParameter(nameParam);Now I can access the names in order:
name1 via name[0]
name2 via name[1]
name3 via name[2]
etc...Before going any further I would stop working on Servlets and go back to some good Basic Java Tutorials and books until you get a better grasp of how the language works.

Similar Messages

  • Passing session info

    hi all,
    i have lots of jsp pages and these pages use a lot of class files created by me.
    i want to pass session info to class files without having to pass the info through each object that is created in the jsp pages--
    what i want to know is that is there any way through which a class file a mine could fetch the session value.(i dont mind passing session info to one class-- but passing to too many classes would be a headache !!)
    thanks,
    gaurav

    Not sure if this will work but worth a try.
    Create a class called SessionHolder that looks something like:
    public class SessionHolder {
    private static HashMap sessionMap;
    public synchronized static void putSession(Thread thread, HttpSession session) {
         if (sessionMap == null) { sessionMap = new HashMap(); }
         sessionMap.put(thread, session); }
    public synchronized static HttpSession getSession(Thread thread) {
         return (HttpSesion)sessionMap.get(thread); }
    public synchronized static void removeSession(Thread thread) {
          sessionMap.remove(thread); }
    }<P>
    In the servlet you store the session in the SessionHolder via:
    SessionHolder.putSession(Thread.currentThread, request.getSession(true));
    Always remember to remove the session from the SessionHolder when exiting the servlet or the sessions will linger and take up memory:
    SessionHolder.removeSession(Thread.currentThread);
    In your classes you can retrieve the session using:
    HttpSession session = SessionHolder.getSession(Thread.currentThread);
    This should work on the basis that the servlet container will create a new thread for each request to the servlet. As long as your classes do not create new threads they should be able to access the static hashmap to retrieve the session stored by the thread key.
    Of course this is just a theory and I have not tested it out to verify if it actually works.

  • How to pass session info to applet?

    Hi all,
    Is it possible to pass a browers' session id to applet in Tomcat server? I've known that an applet can get a session info from brower.
    Howserver, since I can't chage a applet code I want to modify Tomcat server to maintain session.
    Is there any suggestions?
    thanks.

    The Servlet will normally communicate the session id with a web client (e.g., browser) via cookies. A random session UID is generated and associated with a given client's session. The id is sent back to the client via the http-header set-cookie. On subsequent requests, the browser will include the cookie http-header containing the UID. Some implementations may opt to store the session UID in a hidden form field, though this is less common.
    I'm not sure where the applet is in your architecture. However, if you send and receive HTTP messages, you should be able to store the id and ensure that you send your own requests to the Servlet with the appropriate cookie http-header.
    - Saish

  • Passing session data between jsp and servlet

    I have a servlet that I pass data to my jsp.
    I do a session.setAtrribute in the servlet. No problem.
    I get the data no problem in the jsp that I call.
    How do I pass this same data to the another servlet?
    I basically have an array of values that I already have in the existing jsp that has been set in session.
    When I call the secondary servlet, I don't have anything in this session variable related to my array.
    Prior to posting to my next servlet, do I need to do another setAttribute inside the jsp to get the data passed to the servlet?
    Thanks.

    Two different things. The encoding adds this to the URL (after the page, before the query string
    ;jsessionid=ABC123 but only if the user isn't using cookies.
    So in your example, you would do this (maybe):
    <%
      String url = response.encodeURL("Servlet");
    %>
      <form name="form1" method="post" action="<%= url %>?cmd=pay"> ... Or some modification.
    So the difference between encodeing and using a post is that
    1) encoding adds the jsessionid to the url string if necessary. It does nothing else
    2) POSTing will send a request to the provided URL via the POST method, including the inputs of the form as parameters to the URL.
    They really don't interact with each other. It is like asking what is the difference between the Color Orange and thr Size Big? They can both be applied to the same thing, or not... and have no real relation to each other.

  • Passing string variables between servlets

    Hello
    I need to pass an SQL string constructed in Java servlet A to Java servlet B where it can be executed.
    For example:
    In servlet A I have:
    String cmd = ("select x from y where z");
    cmd is then passed to the server as a hidden form field and read by servlet B as:
    if (paramName.equals("cmd")) {
    String cmd = paramValue;
    However, displaying cmd in servlet B shows only:
    "select"
    Is there a way around this at all? That is, other than converting all spaces to another character in servlet A and reinstating the spaces in serlvet B?
    Thanks
    Martin O'Shea.

    marti,
    you are posting the form aren't you... not getting it?
    I'm suspecting that it's a side-effect of URL rewriting.
    http://en.wikipedia.org/wiki/Rewrite_engine
    And of course a better approach is create user model in the session facade... and if you don't know what that means then forget it.
    keith.

  • Loosing session data between servlets...

    Based on the code below I'm loosing the session data i.e the class indexed by the session id is returning NULL. If anyone has any suggestions I would apprciate it.
    Class 1:
    HttpSession session = request.getSession(true);
    Hashtable books = (Hashtable) session.getValue("books");
    if (books == null)
    books = new Hashtable();
    else
         books = null;
         books = new Hashtable();
    session.putValue("books", books);
    Class 2:
    HttpSession session = request.getSession(true);
    Hashtable booksOrdered = (Hashtable) session.getValue("books");
    System.out.println("booksOrdered: "+ booksOrdered):
    The system.out.println statement returns
    booksOrdered: NULL
    Help please
    Lee Paulison Jr

    I forgot to mention that the code was working up until I installed the March 4 - 28 2002 Windows NT Critical updates. The code worked after the update when I changed to a different login name namely Admin. Then after a few hours it stopped working, and continues not to work on any Login. I hope that this last bit of information helps someone come up with a fix.
    Lee Paulison

  • EJB 3.0 Stateful session bean shared between Servlet's

    Hello
    I have a bit of a noob question regarding Stateful sessions beans.
    I am wanting to know if there is a way that I can share an instance of a session bean between multiple HttpServlet instances?
    I am sending XML messages from a mobile J2ME application, there will be several http POST's made from the mobile client to the server. I would like these multiple POST's to be passed from the handling servlet instance to the same uniquely identified single stateful session bean instance (i can then @Remove the stateful bean when I have finished my several requests).
    I would greatly appreciate any tips anyone could give me.

    If not, your only option is to maintain the
    association yourself by creating a unique id for
    each
    conversation and storing that id along with the SFSB
    reference in the ServletContext. Then you'll
    need to pass the id in along with each invocation to
    retrieve the appropriate SFSB reference.Thanks for your reply.
    Will I always be presented with the same ServletContext instance? Even if the time between requests might be many minutes? Where can I learn more about how to use the ServletContext?
    Thanks!

  • "Sharing" a stateful session bean between two servlets, beans

    Hello!
    I just started to learn some java ee programming and was wondering how i would share one stateful session bean between two servlets.
    I created the bean with @Stateful.
    I tried to inject the stateful bean in both servlets by @EJB and i can manipulate the object, but each servlet seems to have its own object.
    The bean has a remote interface that it implements.
    What i also tried was to add the mappedName to the @Stateful expression. Something like: @Stateful(mappedName="name") and to use the bean by @EJB(mappedName="name") but it had no effect.
    Im using glassfish 2.1 with netbeans 6.7.1 as my environment (standard settings)
    dummy question, but i googled like hours and couldnt find anything : \
    hope someone can help and sorry for my bad english
    greets and thanks

    Hi there!
    I think you are searching for something like an application wide singleton. There is the possibility to define such one in the Glassfish admin console.
    Hope this helps!

  • Catch BO Session info in Crystal Report 2008 to pass to Xcelsius 2008

    Hi All.
    I have an Xcelsius 2008 model with data provided by a Live Office connection.
    I've tried to embed this model, as swf file, in a report Crystal 2008.
    I've published this report within BOE Enterprise, but trying to visualize it, the Live Office connection prompts for BO authentication.
    Is there any way in Crystal Report 2008 to catch current BO session info to pass it to the Live Office connection?
    I would really appreciate any suggestion.
    Thanks a million.
    PS: I'm sorry if this is not the right forum. This thread is available also in Crystal Reports Design section.

    No, we haven't found a solution that we would like to have.
    We are putting in place a workaround to update the Xcelsius SWF file outside of Crystal.  We will have the Crystal Report using the BOBJ scheduler to export to Excel on a file share the cross tab table used in Xcelsius and then have Xcelsius updated using the BOBJ scheduler.  Instead of having the Xcelsuis embedded in Crystal, the SWF file will be posted to the same SharePoint site that we will be posting the PDF file from Crystal.  Not ideal, but it should work.

  • New insight into my dropdown list problems: loss of session info

    I tried again, this time with NetBeans 5.5.1 (with Tomcat 5.5.17) and stepped through my code; code executed as a result of selecting an item in the second, misbehaving dropdown box.
    I have this function:
        public void prerender() {
            SessionBean1 sb = this.getSessionBean1();
            sb.setPortfolio_id(0);
            this.getDropDown2().setSelected(ddsi);
        }This uses a private data member:
    Object ddsi = null;
    And here is my value changed event handler for this combobox:
        public void dropDown2_processValueChange(ValueChangeEvent event) {
            SessionBean1 sb = this.getSessionBean1();
            String sp_id = (String) this.getDropDown2().getValue();
            ddsi = event.getNewValue();
            String desc = (String) ddsi;
            Long Ldesc = new Long(desc);
            long p_id = Ldesc.longValue();
            sb.setPortfolio_id(p_id); 
            this.getFacesContext().getCurrentInstance().renderResponse();
        }As you can see, I am trying to ensure that the value selected is preserved and used the next time the item is rendered.
    sb.setPortfolio_id(p_id); is a trivial setter function (taking a long argument) for the property portfolio_id.
    When I step through this code, at every step along the way, I see the correct value for p_id! The correct value is passed to the session bean! And I even see the correct value in ddsi when the function "prerender" is executed. However, it seems that this information is lost when the page is actually rendered.
    And, when the servlet that produces the image that is to be displayed on the page checks the session bean, the session bean has the default value (0) for the portfolio_id property rather than the the value (30) that had been passed to the session bean.
    It is as if the session information has been lost, or a new session bean is provided each time the page is rendered.
    The only additional clue is this (found in Tomcat's output);
    com.sun.rave.web.ui.component.DropDown::The current value of component form1:dropDown2 does not match any of the selections.
    Did you forget to reset the value after changing the options?
    Why is this happening? I know full well that at the time the value in dropdown2 is changed, the value in dropdown1 has not, and therefore the value passed to dropDown2 IS in the list of selections. But, when the value in dropDown1 is changed, the list of options in dropDown2 is changed. I wonder if the valueChanged event handler for dropdown1 is being executed every time the page is rendered, forcing dropDown2 to "forget" what was selected, and somehow losing the session info at the same time?????????
    Any ideas?
    Thanks
    Ted

    Upgrading to itunes 7.0 just cost me 2 days of messing around and in the end I had to revert back to v6.0 and resore my lib.
    Apple CS was good but did not belly up the fact that 7.0 is defective in some cases and in the end told me I had a hardware problem!
    The main issue is that I could not get itunes 7.0 to see my ipod (very infrequently after a hard boot I would see it but would not be able to upload anything). Worked(s) 100% with v 6.0.
    This is very defintey 1/2 baked following in the steps of the other well known producers of sw that is not always functional/buggy the first time around.
    My computer is a x40 IBM laptop with xp sp2. Will have to wait a few more weeks to see how this pans out.
    IBM X40 Windows XP

  • Getting Session Info In A Normal Class

    I want to get session info from a class that is not servlet (generally from in a bean). When we use servlets it is so easy to get session info by just using request.getSession() method. Is it possible to get this session info in a normal class which is not servlet Technology?

    Is it possible to get this session info in a normal class which is not >servlet Technology? No reason you cannot.
    But do remember that normal java classes which arent Servlets/Jsps arent invoked by the container as part of the standard request processing.
    Beans, for example, are instantiated (& reused) from within a Servlet or a Jsp.
    So all you have to do is retrieve the session info (or a part thereof) from within a Servlet/Jsp that's part of the request cycle and pass this data onto the bean when you invoke its methods.
    ram.

  • Getting session information in servlet?

    In Apache SOAP, org.apache.soap.rpc.SOAPContext can be used as a parameter to get at session data in your servlet. The JDeveloper web services publishing wizard won't expose a method with this parameter, saying that the XML Schema mapping and/or serializer is not specified. Is there an OC4J equivalent to get at session information?

    Hi.
    Most definitely possible. A few months ago I coded something very similar - jsp
    form, submit to a servlet. I needed to get and set session info in both the
    servlet and jsp. The code was very basic (ie no tricks involved) and worked
    well. FWIW both my servlet and jsp were in the same webapp.
    Good luck,
    Michael
    PeterH wrote:
    Howdy.
    re meant something else
    That's what I'm trying to figure out. :>
    re what do I mean by...
    I have one jsp page, that has a an html form on it with elements that get
    passed to a servlet through a submit button on the form. I would like to be
    able to get information about the session from within the servlet. Is that
    possible?
    Let me know if I'm not explaining myself properly and you need more info.
    I'm relatively new to this stuff. But I'm learning! :>>>>
    Thanks for your reply.
    <[email protected]> wrote in message news:[email protected]..
    Hrm. Whoever told you this probably meant something else. What do you mean
    by a 'servlet being called from a jsp' ?
    PeterH <!REMOVEBeforeSending![email protected]> wrote:
    I was told today when using a servlet within a web app (being called
    from a
    jsp), you do not have access to the session object. Is that true?Short of
    passing session attributes via the servlet call, how can you access the
    session information?
    Thanks for any ideas.--
    Dimitri
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Maintain session when calling servlet from form in a JSP

    I have the following set up:
    index.jsp calls login servlet from the action tag in a form.
    Login servlet handles the login, stores the user info and db connection in the session and uses forward(req,res) to call another jsp.
    That jsp has a form where user enters search info and in that form's action tag there is a search servlet. In the search servlet I am unable to access the session.
    Is there any way to pass the session to the servlet from that jsp using a form/action?

    I've read elsewhere that if you go from a jsp to a servlet that the >request object is cleared of any attributes from the previous request.which is correct. But arent we speaking about session object here? A request object is valid for a request - ie the phase from where the server receieves a hit for a resource upto the point it sends the output for that request.
    A session spans multiple requests.
    it doesn't retrieve the session info and gives me a null pointer >exception when I try to use the connection object stored in the session.Bad bad bad . Why do you store Connection objects in session? Create them when necessary or use a connection pool. Do you for example clean up the connections when the session expires. What if its a 30 minute session and the user hits every say 15 minutes with a request. Why do you need to hold on to the Connection in the intervening interval when the user's session is inactive?
    gives me a null pointer exception when I try to use the connection object stored in the session.which means that the Connection object is null - not the session object.
    That last line is where I get the null pointer exception. And that is
    Statement stmt = con.createStatement();?
    Same answer as above.
    If the session object was null,
    userSession.getAttribute("connection");would have thrown a NPE.
    ram.

  • Passing Session to Other Java Application

    Dear All,
    We need to pass session of SAP BO to other java application.in short we need to make single sign on between these two without using third party authentication type.
    by research , i could find out extension point API which supports to environment, through which it might be possible.
    I need your help on this.
    Environment:
    SAP BO 4.1 Sp2
    Any Help on this would be appreciated.
    Best Regards,
    Atulm

    Hi all, i have one problem. I need to pass some
    session to a java bean for processing.. Can i know are
    there any possible ways of passing? thanks.if i understand you correctly, and you mean passing a session object
    to a bean from a jsp page, do this:
    have in your bean:
    import javax.servlet.http.HttpSession;
    private HttpSession session = null;
    public void setSession (HttpSession sessionFromJsp) {
    session = sessionFromJsp;
    in your jsp:
    beanname.setSession(session);
    the variable named session is available is jsp pages,
    it is an instance of the javax.servlet.http.HttpSession class,
    and provides access to the client session information.
    dave

  • Session managing testing servlets

    I am running two 5.1 sp1 servers in a cluster using in-mem replication
              with a wl proxy server, all on NT boxes. I've written three servlets:
              Login, Logout, and Test2
              Login creates a new session if one isn't present. Logout kills the
              session if there is one present. Test2 tests for the existence of a
              session.
              -- I start the server and create a new session with the Login
              servlet.
              -- I test with Test2 servlet ( I get Test2: init) and it doesn't see
              the session I had just created.
              -- I reload Test2 and it recognizes the session OK.
              -- It recognizes the session with all subsequent calls to it as well.
              -- Killing the server and making the session failover to another
              server will make the Test2 servlet not see the session for the first
              time again (If that is the first time that the servlet is loaded on that
              particular server).
              Same happens with Logout servlet. It seems that when a servlet is
              initially loaded on a server it doesn't see sessions already present but
              it picks up that info on all subsequent loads. What can I do to make
              sure all my servlets see all the sessions all the time (otherwise this
              failover demo I'm doing is quite useless).
              Thanks, Timur
              

              Prasad Peddada wrote:
              > Timur Maltaric wrote:
              >
              > > Say I had two servers in the cluster to begin with. Sessions were created and killed as users logged on and off.
              > > One server dies suddenly and one is left operating in the cluster. Shouldn't this one that is operating be able to
              > > correctly handle any new sessions that will be created?
              >
              > Yes.
              >
              > From your earlier mail:
              >
              > The log attached to an earlier message shows that Login servlet starts a new session, and writes a cookie. Good.
              > Requesting Test2 doesn't read that cookie and returns session = null. Requesting Test2 again reads the cookie
              > correctly and gets the correct session information.
              >
              > From the log files:
              >
              > Tue May 30 10:17:42 EDT 2000:<D> <ServletContext-General> Found servlet for Virtual Path: '/Test2'
              > Tue May 30 10:17:42 EDT 2000:<I> <ServletContext-General> ServletRequestImpl: ServletPath: /Test2
              > Tue May 30 10:17:42 EDT 2000:<D> <ServletContext-General> Invoking servlet
              > Tue May 30 10:17:42 EDT 2000:<D> <ServletContext-General> Checking ACL: weblogic.servlet.Test2
              > Tue May 30 10:17:42 EDT 2000:<I> <ServletContext-General> Parsing cookies
              > Tue May 30 10:17:42 EDT 2000:<I> <ServletContext-General> ServletRequestImpl: Found cookie:
              > javax.servlet.http.Cookie@b8f4916
              > Tue May 30 10:17:42 EDT 2000:<I> <ServletContext-General> ServletRequestImpl: SessionID:
              > OTPNVO0XpIhya1eIDpzrNar9gwDuzpm198DEKR9ho5uhKqSfIOis7UdLQ0773aTGodGkgNoKH0A3|-5241978140997784602/168297227/6/7001/7001/7002/7002/7001/-1|NONE|-5241978140997784602
              > found in cookie
              > Tue May 30 10:17:42 EDT 2000:<I> <ServletContext-General> ServletRequestImpl: Trying to find session:
              > OTPNVO0XpIhya1eIDpzrNar9gwDuzpm198DEKR9ho5uhKqSfIOis7UdLQ0773aTGodGkgNoKH0A3|-5241978140997784602/168297227/6/7001/7001/7002/7002/7001/-1|NONE|-5241978140997784602
              >
              > Contrary to what you said the weblogic server is reading your session. All the requests are in the same session.
              The first time (notice time) that the request is made for Test2 weblogic server is NOT reading the session info. Second request for Test2 (one you quoted) is OK.
              Why?:
              Tue May 30 10:17:13 EDT 2000:<D> <ServletContext-General> Found servlet for Virtual Path: '/Test2'
              Tue May 30 10:17:13 EDT 2000:<I> <ServletContext-General> ServletRequestImpl: ServletPath: /Test2
              Tue May 30 10:17:13 EDT 2000:<D> <ServletContext-General> Invoking servlet
              Tue May 30 10:17:13 EDT 2000:<D> <ServletContext-General> Checking ACL: weblogic.servlet.Test2
              Tue May 30 10:17:13 EDT 2000:<I> <ServletContext-General> Parsing cookies
              Tue May 30 10:17:13 EDT 2000:<I> <ServletContext-General> ServletRequestImpl: Get query parameter: WebLogicSession found value: null
              Tue May 30 10:17:13 EDT 2000:<I> <ServletContext-General> ServletRequestImpl: SessionID not found
              Tue May 30 10:17:13 EDT 2000:<I> <ServletContext-General> Test2: init
              >
              > Contact support if you have a reproducible test case and we will go from there.
              I am contacting support.
              >
              >
              > I don't think it matters how many servers are in the cluster because none are really failing. Correct me if I'm wrong.
              >
              > True.
              >
              > - Prasad
              >
              > >
              > > Timur
              > >
              > > Prasad Peddada wrote:
              > >
              > > > If you have only one server in the cluster how do you expect it to failover and retrieve your session
              > > > information.
              > > >
              > > > - Prasad
              > > >
              > > > Timur Maltaric wrote:
              > > >
              > > > > There was only one server running in the cluster when these requests were made. That shouldn't be a problem
              > > > > though.
              > > > >
              > > > > Timur
              > > > >
              > > > > Prasad Peddada wrote:
              > > > >
              > > > > > The same cookie is being sent five times as you can see. Are you sure your clustering is
              > > > > > working. I don't think the servers are recognizing each other. Do you have two servers
              > > > > > running when you made these requests.
              > > > > >
              > > > > > C:\TEMP>grep
              > > > > > "OTPNVO0XpIhya1eIDpzrNar9gwDuzpm198DEKR9ho5uhKqSfIOis7UdLQ0773aTGodGkgNoKH0A3|-5241978140997784602/16829722
              > > > > >
              > > > > > 7/6/7001/7001/7002/7002/7001/-1|NONE|-5241978140997784602" weblogic.log | wc -l
              > > > > > 5
              > > > > >
              > > > > > - Prasad
              > > > > >
              > > > > > Timur Maltaric wrote:
              > > > > >
              > > > > > > Here is a snippet from the log. Test2 doesn't recieve the cookie on first load but
              > > > > > > recieves it thereafter.
              > > > > > >
              > > > > > > Timur
              > > > > > >
              > > > > > > Prasad Peddada wrote:
              > > > > > >
              > > > > > > > I don't think domain property applies to your case. Did you try turn on the
              > > > > > > > debugging and did you notice anything wrong. When you requested Login, you should
              > > > > > > > have got a cookie that should have been passed back when you requested Test2. Do
              > > > > > > > you see that in log?
              > > > > > > >
              > > > > > > > - Prasad
              > > > > > > >
              > > > > > > > Description about domains:
              > > > > > > >
              > > > > > > > When searching the cookie list for valid cookies, a comparison of the domain
              > > > > > > > attributes of the cookie is made
              > > > > > > > with the Internet domain name of the host from which the URL will be fetched.
              > > > > > > > If there is a tail match, then
              > > > > > > > the cookie will go through path matching to see if it should be sent. "Tail
              > > > > > > > matching" means that domain
              > > > > > > > attribute is matched against the tail of the fully qualified domain name of
              > > > > > > > the host. A domain attribute of
              > > > > > > > "acme.com" would match host names "anvil.acme.com" as well as
              > > > > > > > "shipping.crate.acme.com".
              > > > > > > >
              > > > > > > > Only hosts within the specified domain can set a cookie for a domain and
              > > > > > > > domains must have at least two (2)
              > > > > > > > or three (3) periods in them to prevent domains of the form: ".com", ".edu",
              > > > > > > > and "va.us". Any domain that fails
              > > > > > > > within one of the seven special top level domains listed below only require
              > > > > > > > two periods. Any other domain
              > > > > > > > requires at least three. The seven special top level domains are: "COM",
              > > > > > > > "EDU", "NET", "ORG", "GOV", "MIL", and
              > > > > > > > "INT".
              > > > > > > >
              > > > > > > > The default value of domain is the host name of the server which generated
              > > > > > > > the cookie response.
              > > > > > > >
              > > > > > > > Timur Maltaric wrote:
              > > > > > > >
              > > > > > > > > weblogic.httpd.session.cookie.domain
              > > > > > > > >
              > > > > > > > > what does this do? What should I set it to?
              > > > > > > > >
              > > > > > > > > Prasad Peddada wrote:
              > > > > > > > >
              > > > > > > > > > Turn on the weblogic.debug.httpd=true and see if the cluster's are receiving
              > > > > > > > > > cookie's or not and try with IE as well.
              > > > > > > > > >
              > > > > > > > > > Try setting this property on the weblogic servers in the backend and see if
              > > > > > > > > > it helps.
              > > > > > > > > >
              > > > > > > > > > weblogic.httpd.session.cookie.domain
              > > > > > > > > >
              > > > > > > > > > - Prasad
              > > > > > > > > >
              > > > > > > > > > Timur Maltaric wrote:
              > > > > > > > > >
              > > > > > > > > > > I am running two 5.1 sp1 servers in a cluster using in-mem replication
              > > > > > > > > > > with a wl proxy server, all on NT boxes. I've written three servlets:
              > > > > > > > > > > Login, Logout, and Test2
              > > > > > > > > > > Login creates a new session if one isn't present. Logout kills the
              > > > > > > > > > > session if there is one present. Test2 tests for the existence of a
              > > > > > > > > > > session.
              > > > > > > > > > >
              > > > > > > > > > > -- I start the server and create a new session with the Login
              > > > > > > > > > > servlet.
              > > > > > > > > > > -- I test with Test2 servlet ( I get Test2: init) and it doesn't see
              > > > > > > > > > > the session I had just created.
              > > > > > > > > > > -- I reload Test2 and it recognizes the session OK.
              > > > > > > > > > > -- It recognizes the session with all subsequent calls to it as well.
              > > > > > > > > > >
              > > > > > > > > > > -- Killing the server and making the session failover to another
              > > > > > > > > > > server will make the Test2 servlet not see the session for the first
              > > > > > > > > > > time again (If that is the first time that the servlet is loaded on that
              > > > > > > > > > > particular server).
              > > > > > > > > > >
              > > > > > > > > > > Same happens with Logout servlet. It seems that when a servlet is
              > > > > > > > > > > initially loaded on a server it doesn't see sessions already present but
              > > > > > > > > > > it picks up that info on all subsequent loads. What can I do to make
              > > > > > > > > > > sure all my servlets see all the sessions all the time (otherwise this
              > > > > > > > > > > failover demo I'm doing is quite useless).
              > > > > > > > > > >
              > > > > > > > > > > Thanks, Timur
              > > > > > > > > >
              > > > > > > > > > --
              > > > > > > > > > Cheers
              > > > > > > > > >
              > > > > > > > > > - Prasad
              > > > > > > >
              > > > > > > > --
              > > > > > > > Cheers
              > > > > > > >
              > > > > > > > - Prasad
              > > > > > >
              > > > > > > ------------------------------------------------------------------------
              > > > > > > Name: weblogic.log
              > > > > > > weblogic.log Type: Text Document (application/x-unknown-content-type-txtfile)
              > > > > > > Encoding: base64
              > > > > >
              > > > > > --
              > > > > > Cheers
              > > > > >
              > > > > > - Prasad
              [att1.html]
              

Maybe you are looking for

  • Can't use my iCloud

    I currently own a number of Apple products: MacBook Pro, x2 iPads, iPhone 4, iPhone 4S, Apple TV and a time capsule device. Needless to say iCloud would be extremely useful to me to be able to store data on iCloud which would be accessible to all my

  • Window 8.1 Dose Not Play .mpg2

    Hello Everyone. I have a new computer window 8.1.  I noticed, when I Import my .mpg movies inside Premiere Pro, I do see the movie. But When I export It I can only hear the sound. Also, If I Double Click on any .mpg movies, In my Desktop, I can only

  • Problems using finder 10.8.2

    I have some problems with my finder, i use a macbook pro retina with mountain lion 10.8.2. Just installed normal apps such as chrome, firefox, adobe suite and so on. But the following issues occur. - When using spotlight and click on "show all in fin

  • How to add chapter id (J_1ICHID) with material desc. in SCRIPT J_1I_ARE1

    Please guide me how to enter chapter id with Description of goods in stantard script J_1I_ARE1 ? i have copied the script into Z .

  • Just reinstalled OS 10.6 and updated to 10.6.8 and internal mic doesn't work...

    I reinstalled the system to try and fix the DVD player, which was refusing to play most (but not all) my DVD's... the new system didn't fix the DVD problem and now the mic doesn't work either!!??!?!?! Any ideas?