Session info getting lost

Hello - In my struts appln:, RequestProcessor class calls LoginAction class , where i'm doing this every time a user logs in :
session= request.getSession(true); session.isNew() [value comes true for the 1st time].
Code sets some session variables [i've listener's defined for these variables...i checked in logs, valuBound() gets called for them properly ] and redirects the user to a jsp page.. where this jsp spawns a new child window[which essentially will share same session] and calls some other Action Class in child window. Now, the RequestProcessor before fwd'*** the call to this Action Class, checks for the session variable and suprisingly the variables are not found and infact the session.isNew() is true.
Note : 95% of the times this appln: works fine... only few times this wiered behaviour is noticed... can someone help

vikas.tomar wrote:
Note : 95% of the times this appln: works fine... only few times this wiered behaviour is noticed... can someone helpThere is either a bug in the application server implementation used at the server side (upgrade it) or a flaw in the web browser at the client side (misconfiguration? spyware? virus?).

Similar Messages

  • Session getting lost

    Now issue related to session
    I am using tomcat 3.1
    In my login page my session value get lost frequently.I am using session.setAttribute("logon.isDone", name); in servlets and In every jsp's I am checking as <% if(session.getAttribute("logon.isDone")==null){
    response.sendRedirect("/iscap/report/relogin.jsp");}%>
    The value get lost in a very short time so user is sent to relogin .
    Now what I do here?
    payal sharma

    Hi
    try to set the maximum interval between requests
    eg:
    session.setMaxInactiveInterval(6000);
    vis

  • Session getting lost between two applications deployed on two WLS versions.

    Hi,
    Jdev version 11.1.1.5.
    I am facing an issue of session being getting lost. Let me explain the scenario.
    Our client has a legacy application(xyz) running on Web logic server(10.3.3). We have developed an application which was deployed on Web logic Server(10.3.5).
    The Legacy application will call the developed application using URL invocation. In the legacy application, the logged in user information is stored in session and the same parameter is appended to URL to call the developed application.
    In the developed application, we have a servlet which reads the URL and based on the parameter appended to it, we set the context of the application. Everything is working fine till here.
    But, in the developed application, we have a link to navigate to the legacy application. Once navigated, in legacy application if the user again calls the developed application, the session which was set earlier is lost.
    Because of this, the context is not getting set in the developed application.
    Is there a way, I can resolve this issue? OR can I raise SR with Oracle to look into it. Please suggest.
    Thanks,
    Umesh

    Thanks Frank for the reply.
    Session sharing was not configured in WLS.
    I was searching for Session sharing and I found this article written by Lucas Jellema. http://technology.amis.nl/2012/01/18/sharing-session-state-between-jee-web-application-through-weblogic-session-descriptor-of-sharing-enabled/
    Here it is mentioned that for session sharing, we need to check the Enable session sharing in weblogic-application.xml.
    My question is do we need to make this change in both the application? i.e Legacy application and developed application.
    And it was mentioned in the article that both the web app were deployed to a single Web Logic Server. But in my case the Legacy application is deployed to 10.3.3 and developed application is deployed to 10.3.5.
    In this case will the session sharing works?
    Any how I will let our client know about this change and will give a try.
    Thanks,
    Umesh

  • 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

  • I synced my iphone too my computer and I got all my husbands info and lost all mine how can I get my info back.

    I synced my iphone too my laptop and got all my husbands info and lost mine how can I get my info back off this laptop.

    hi marie i take you have got your own apple registration, if not you need toregister under your own name & password, if you have then it does sound like you've just plugged it in under your husbands name. lori :-)

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

  • Session is being lost between GET and POST

    My application is being developed in Tomcat 4.1.18.
    I have a servlet that acts as a Controller and JSP's that make up the View. Basically, the session gets lost in the following manner:
    The application's web.xml file is set with Authentication method of Unspecified. Basically, it's not a high security application, we just need to make sure that the user maintains a session throughout the application.
    User is presented with a page (login.jsp). They present their credentials. The controller does an include (RequestDispatcher.include) on a jsp (this jsp simply does a setProperty *) to fill the bean. Then, the controller passes control (through RequestDispatcher.forward) to the Action servlet. The Action does some processing and forwards to the next destination. Next, the user clicks on a link (GET) (this causes the URL to be rewritten with the correct session ID). In this particular instance, the user is presented with a form to fill out. The user fills out the form and it POSTS to the controller. At this point, the controller attempts to access the session and it is lost!
    Frustrating. Please feel free to email at [email protected] Thanks.

    I just tried encoding the FORM ACTION and no dice. I'm pretty new to JSP's so I'm wondering if its something stupid that I'm doing (or not). I've never had this problem using straight servlets before.
    It would be hard for me to justify getting rid of the JSP's and going with a straight servlet solution.
    I'm also wondering if my Authentication:Unspecified in the web.xml file has anything to do with my current troubles.

  • HT4901 My desktop calendar info is lost when I signed up for Icloud I have an ipad and iphone and cannot get calendar to sync with desktop, phone or ipad!

    My calendar info is lost on my pc. I am using icloud.

    One iCloud account has one user name (a .mac or .me email name) and password.  If you have set up multiple accounts in the past then you must choose one and stay with it.  If you don't know the user name, then you have a problem.  If you haven't really begun using iCloud (but you mention trying to get mail, so I'm assuming you have used iCloud before), then use a .mac or .me account you know you have or just sign up for a new account - and be sure to write down the name and password for future use.
    If you want to use the account to sync your contacts, email, calendars, etc, then each of your ios devices need to use the same account, otherwise they will be independent of one another.

  • 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

  • Session variables being lost in IE7

    has anyone else experienced, heard of, or solved this issue?
    I have a web app thats been running fine for 5+ years and using session variables (i'm currently using CF8).
    When a user goes from page to page the session is carried with them so i know their login info. However, recently some users (and not all) have complained that after logging in fine (meaning the sessions variables are created) and go to another page off of the main one only to get a timeout issue. I've compared everything from IE settings to server settings, etc. but found no differences. It's like once they navigate to another page in the app the sessions are not carried to the next page.
    My timeout code is written so that if the session variables that are created at login are not present the message will show.
    Some users had to revert back to IE6 and it worked fine. Is there something they did wrong with ther IE update or is there some sort of server hot fix for this?
    Hope someone can help... i'm baffled.

    That forum you posted is definitely my issue! However it still is unresolved and the users have yet to pinpoint the cause (just like me). I too firmly believe its due to an IE7 upgrade b/c that is when this happens.
    I've checked out the user cookies. I used this script and put it on my server and had the user try it:
    http://www.bennadel.com/blog/730-Testing-ColdFusion-Session-Cookie-Acceptance.htm
    The cookies are passing over to the next pages fine (this script showed a success on the user machines). But ye the sessions are lost in my app. the CFID and CFTOKEN are changing when the user clicks to go to another page after login.
    In fact I have the CF8 server monitor up and running and when someone logs in I can see the their session info under the MEMORY USAGE --> Sessions by memory usage.
    I'm finding that users with this issue can log in fine but the session never gets registered with the server?!? Their CFID and CFTOKEN is not showing as an active session and when they click to another page their CFID is always different than their original?
    Any thoughts?

  • Firefox 4.0.1 closes with no error message. When I restore the session I get: Well, this is embarrassing. Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page. What can I do?

    After opening certain websites, pogo, firefox 4.0.1 closes with no error message. When I restore the session I get: Well, this is embarrassing. Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page.
    I have had this problem before and had to reinstall an earlier version of firefox.
    The error console has a long list of errors, many of them end with: does not implement nsIObserver. Is there a way to send the information on the error console to firefox support?
    Redownloading Firefox 4.0 will fix my problem until I either close firefox or turn off my computer. The problem recurs when I open firefox again.

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * https://support.mozilla.com/kb/Firefox+crashes
    It is also possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/sessionstore.js
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Catch BO Session info in Crystal Report 2008

    Hi All.
    I have an Xcelsius 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 Dashboard Design (Xcelsius) section.

    HI,
    to get or find an answer/solution about your question/problem?
    I planning also to use Hierarchy Display in CR. And it is very interessting for me to know if that is working.
    Thanks
    Andreas

  • Imessages getting lost

    I have 2 iPhone 4 on my AT&T account. And, it is only with these iPhones do I seem to have this issue. iMessages are not always received between the 2 phones and there is no notification of failures, instead, I ask the other person, did you get my text and they did not. Both iPhones use the same apple ID, but I can't imagine that's the issue. Any ideas on why some iMessages are just getting lost?

    I think iMessage is like the Bump App.  It could be akin to an immediate "peer to peer" type arrangement coordinated by Mother Apple.
    Your device (iPod, iPad, iPhone) tells Mother Apple, via the internet (Wifi or 3G) that mobile No. or an eMail address is "online" and can receive messages.
    People who want to message you from their devices are doing the same thing in "advertising" their presence and availability to Mother Apple with their "addresses" which could be phone numbers or eMail addresses.
    When you want to send a message then it basically goes via Mother Apple who matches you up and makes the connection.  If the other party drops off the internet during the messaging session for any reason, then, whilst your message is considered by Mother Apple to be "delivered" it is not actually received.  I don't think Mother Apple have the facility to "hold" or store messages for later delivery, they are just the "exchange".  Mother Apple could, however, snoop on conversations and this might be in the fine print of the terms and conditions.
    If iMessage (ie an internet connection) is not available, then the SMS will most likely be sent as per the 3G network.
    Re-registering your device is probably not a bad idea !

  • Aperture 3: GPS data gets lost after 'Update from Master'

    My library contains photos in JPEG format that I geotag in Places, then I save the metadata with 'Write IPTC Metadata to Master'. The problem I have is, that the GPS data gets lost after I do an 'Update from Master', even if I saved the metadata before. I'm having this problem with referenced and managed photos and all my JPEGs from several different cameras. The only way to permanently store the GPS info into my photos seems to be to export the geotagged photos as versions.
    Does anybody has the same problem or knows how to solve this?
    Thanks in advance,
    Michael

    Use Houdah geo (http://www.houdah.com) to write location data back to the EXIF. It's interface is very similar to Places (Google maps and pins) and you can interface with the Aperture library. It's a bit of a pain, but if you need it done now rather than wait for an Aperture 3 fix, then...
    Also, see here: http://www.nickrains.com/index.php?option=com_content&view=article&id=65:apertur e-3&catid=12:news&Itemid=24

  • Event gets lost when iView is uncompressed for the first time

    Hi All,
    we are developing an application that manages attachments (meaning: files stored in KM) and per request by the client consists of several iViews. One of them contains a search interface, another one lists the hits that have been found. So the iViews have to communicate.
    We achieved the funcionality by using portal eventing and the HTTP session. The search iView compiles the search string and writes it to the session.
    request.getComponentSession().getHttpSession().setAttribute(searchString, .....);
    We then use javascript to fire an event on which the searchResult iView reacts and fetches the searchString from the session. The actual search is then performed within the searchResult-iView.
    The only problem is that the client requested that the searchResult iView should initially be collapsed. So we set its "initial display" property to "collapsed" and implemented some javascript functionality in the search iView that expands the searchResult iView when a search is performed:
    function openIview( iviewID ) {               
      var temp = parent.pageSupport._getIvuPageId(iviewID);
      var ivuBankObj = parent.pageSupport._getIViewBank(temp);
      if (ivuBankObj.getToogle() == 0) {
        var trayid = ivuBankObj.getTrayId();
        var event = document.createEventObject();
        event.type = "click";
        if(parent.htmlb_TrcToggle(trayid,'0',event)) parent.pageSupport.ivuToogle(iviewID);
    We then fire an event:
    EPCM.raiseEvent('...', 'SearchEvent', param, '');
    All works fine, except for the very first time the searchRersult iView is expanded after the application (meaning the page containing the iViews) has been opened. The searchResult iView is properly expanded, but the event seems to get lost so that no search is being performed (no error, but no reaction by the iView).
    We observed that it seems as if the contents of the iView are only fetched by the browser when it's expanded for the first time. (The progress bar of the browser shows loading activity when expanding the iView for the first time). Supposedly the event gets lost because the serachResult iView doesn't fetch it since it's just being loaded.
    After this initial erroneous behavior, the iView can be in compressed or expanded state before a search is being performed and everything works fine.
    Interestingly enough the problem can be resolved by setting a timeout of several seconds after expanding the iView and before firing the search event. But we find this to be a very questionable (and inconvenient) method of solving this problem and would rather like to solve it properly.
    Does anyone have any ideas how we could achieve this? Is there a way to determine whether an iView has been loaded by the browser (because obviously displaying and loading an iView seem to be two different things)?
    Thanks in advance,
    Jens

    We introduced a boolean "isInitial" flag to the bean which we use to determine whether the iView is expanded for the first time or not. If so, there is a timeout of 2 seconds before the event is fired.
    Not really satisfactory, but working.
    Jens

Maybe you are looking for

  • Disappointed with TCs wireless performance--help!

    I have a 1TB Time Capsule which I believe has the same wireless part as the Airport Extreme and my wireless performance and range is surprisingly terrible. Is the Airport Extreme known to have a better wireless characteristic than the Time Capsule? D

  • Email with buttons in it

    Hi I have a requirement to send an Email from webdynpro application on action of submit button, and the email should contain two buttons APPROVE & REJECT. This email is sent to the approver, depending on button selection the email is triggered back t

  • How can I get a PHP include to update automatically after a set date?

    Hi guys, I maintain a number of website for sports athletes and on their websites I have an include for their next event - just a small PHP file with when and where the next event is. After each event I have to manually update the include to the clie

  • Convergence - Multiple "Corporate Directories"

    Sun Convergence 1.0-4.01 In the Address Book part of Convergence is it possible to add another "Corporate Directory"? By default the Corporate Directory points to the Directory Service that is hosting users and groups for the domain the user belongs

  • The folder home can't be opened because you don't have permission to see its content

    I opened my home folder is widephotography1 (user name is widephotography1) and get info (command i) but I made mistake to click Sharing & Permission and delete inside box name and privilege below (widephotography1, guest, everyone) I deleted widepho