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

Similar Messages

  • 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

  • Issue in applying SSL selectively to Login JSP Page--Session getting lost.

    Hi,
    I am facing some issues with SSL configuration on my web site running on tomcat 5.5. I am using jdk 1.5 and form based authentication with JAAS framework.
    The SSL configuration is working perfectly when applied to complete web site, but starts giving problem when applied selectively to some JSP pages. At present I am trying to apply SSL just on the login page.
    When the login screen loads up, the URL in the browser has a protocol "*https*", as expected, but it doesn't gets changed to "*http*" once the user has successfully logged in. Why is the automatic change from https to http not ocurring?
    Also I want to know which is the default page, tomcat will direct the logged in user to, once successfully authenticated using form based login; Is there any way to change this default page to some other page. It looks like that tomcat automatically directs to index.html , once the user has been successfully authenticated, but I am not so sure. My index.html page is having 4 frames; the source of these frames are different JSP pages, which are not under SSL.
    My aim is to apply SSL just on login.jsp so that password doesn't travel in clear text. Once the user is authenticated he should see index.html and the address bar's URL should change it's protocol from https to http.
    Please, find below the code in my web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>CWA Application</web-resource-name>
    <url-pattern>/about.jsp</url-pattern>
    <url-pattern>/admin_listds.jsp</url-pattern>
    <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <url-pattern>/*login.jsp*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>*</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>CWA Application</realm-name>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/login.jsp?error=true</form-error-page>
    </form-login-config>
    </login-config>
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    My login. jsp has below code:
    <form name="login" method="POST" action='<%= response.encodeURL(*"j_security_check*") %>' >
    <tr>
    <td width="100%">
    <table width="260" border="0" cellspacing="0" cellpadding="1">
    <tr>
    <td align="left" valign="top" rowspan="4"><img src="images/space.gif" width="15" height="5"></td>
    <td align="right" class="login-user" nowrap ><p>User name: </p></td>
    <td align="left" valign="top"><input maxLength="64" name="j_username" size="20"></td>
    </tr>
    <tr>
    <td align="right" nowrap class="login-user"><p>Password: </p>
    </td>
    <td align="left" valign="top">
    <input maxLength=\"64\" tabindex="2" type="password" name="j_password" size="20">
    </td>
    </tr>
    </form>
    The entries in my server.xml are following:
    <Connector port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
    maxThreads="150" scheme="https" secure="true"
    keystoreFile="${java.home}\lib\security\cacerts" keystorePass="changeit"
    clientAuth="false" sslProtocol="TLS" />
    I have gone through the http://forums.sun.com/thread.jspa?threadID=197150 and tried implementing it; The filter as explained in the thread does gets called but the session values are still lost.
    Please note I am using javascript to go from secure "https" to "http" once the user has successfully logged in The javascript code is as below:
    top.location.href="http://localhost:8080/qtv/index.html." ;
    If I use response.sendRedirect("http://localhost:8080/qtv/index.html") for going to non-secure mode, the index.html page does not gets loaded properly. (Please note that my index.html is made of *4 frames*, as explained earlier. This is a legacy code and frames can't be removed).
    The reason for index.html not getting loaded properly is that the Address bar URL does NOT change its URL and protocol from https (https://localhost:8443/qtv/index.html ) to "*http*" (http://localhost:8080/qtv/index.html) when esponse.sendRedirect() is used ;this is the default behaviour of response.sendRedirect(). And because the protocol in address bar is https, index.html is not able to load the other JSP's in it's frames because of cross-frame-scripting security issues (The other JSP's to be loaded in frames are are NOT secure as discussed earlier).
    Please let know if any way out.
    Thanks,
    Masaai

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

  • Session getting lost between JSPs

    Hi,
    I am working on a application in which a user can upload files using FTP. The files may be of large size, say 50-100 MB and it takes approx 30-60 mins for such uploads. The session timeout for the website is set to 20 mins. The way it works is, from the main browser window there is a link to upload files. This link opens a popup window and through this window the user can upload a file. In this popup window, i have included an iframe which sends a post request to the server every 10 mins to keep the session alive. This is working fine in most of the cases, but sometimes it happens that when the when a call is made to send a post request to the server from the iframe, the session is becoming null & invalid or this happens also after the upload has finished and the "upload successful" page gets loaded. This is a very random behaviour, sometimes it works perfectly fine and sometimes it doesn't. It is not dependent on the time, or the size of the file or the number of times the iframe has submitted the request to the server.
    Any one has any idea why the session is becoming null randomly?

    Hi,
    This should never really happen when you bring up a Web Server or to what so called a loadbalancer in place as ultimately the container which creates the session Object.
    I strongly feel that the Webserver(Apache,Sun App Server or IIS) is not passing on the jessionid cookie value which is actually responsible for this action when we are not using url writing for maintaining. .
    How do test that ??
    try the below code snippet and the rest all is understood on what values you get.
    <%
       //Get the values of respective Properties
       boolean sessionIdFromCookie = request.isRequestedSessionIdFromCookie();
       boolean sessionIdFromUrl = request.isRequestedSessionIdFromURL();
    %>
    From Cookie : <%=sessionIdFromCookie%>
    From URL : <%=sessionIdFromUrl%>Well to sort out problems as these you got to enable passing of jsessionid cookie to the Application Context via Webserver which might call for additional set of configurations from webserver end and AJP part.
    Just as an example let us consider in the case employing IBM http server
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.base.doc/info/aes/ae/xjta_ihs_int.htmlor a neutral way to fix this issue is to adopt usage of a technique called URLREWRITING.
    How do you do that ??
    A quick google search provided me the below results
    http://publib.boulder.ibm.com/infocenter/wchelp/v5r6/index.jsp?topic=/com.ibm.commerce.admin.doc/tasks/tseurlrewrite.htm
    http://www.adventnet.com/products/qengine/help/load_testing/loadscript_creation/recording_bc/url_rewriting.html
    http://java.boot.by/wcd-guide/ch04s04.htmlHope this might help :)
    REGARDS,
    RaHuL

  • Session getting lost from the Operator

    Hi,
    Sometimes the session disappears from the operator. Since I am doing performance testing i need to know amount of time taken for the various execution sessions ODI creates. Which table is the session data stored?

    Hi,
    good to know that is working...
    Could you, please, check the thread as solved?
    Thanks,
    Cezar Santos

  • Session gets lost when proxied through a server

    Hi,
    Did anyone come accross loosing session valued when proxied by a server.
    Does anyone have some work around for that?
    Please let me know.
    Thanks,
    Kavitha

    If you use a JSP to generate your form, the following is possible.
              <FORM METHOD="POST" ACTION="<%= response.encodeURL("someurl")%>">
              -brian
              Mike Williams wrote:
              > >>> On Mon, 27 Mar 2000 10:08:30 -0600,
              > >>> "Jim" == "Jim Clark" <[email protected]> wrote:
              >
              > Jim> Try using URL rewriting when the browser doesn't support cookies:
              > Jim> weblogic.httpd.session.URLRewriting.enable=true
              >
              > From the documentation, it seems that you still need to use encodeUrl().
              >
              > Curiously, the value of "weblogic.httpd.session.URLRewriting.enable"
              > doesn't seem to have any effect! However I set it, encodeUrl() still adds
              > a "WebLogicSession" parameter to the URL.
              >
              > Again, this helps with links, but I still lose my session when I use HTML
              > forms, as there seems to be no way to encode the session-ID in the request.
              >
              > Any ideas?
              >
              > --
              > cheers,
              > Mike Williams
              

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

  • 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

  • Weblogic portal session data lost

    Hi,
    I have a peculiar scenario where the data set in the HttpSession gets lost intermittently. I could not really figure out a pattern where this occurs.It occurs any where in the application.
    I have a session listener tied to the Session which does not get triggered when the session data is lost in this manner. This makes me to believe that the session itself is not getting killed. but only the data gets lost.
    I am using Weblogic Portal Server 8.1 sp5 on UNIX server.
    Any help is greatly appreciated.
    Thanks
    Raj

    Well, we use the standard authentication:
    [url http://edocs.bea.com/wlp/docs81/javadoc/com/bea/p13n/security/Authentication.html#login(java.lang.String,%20java.lang.String,%20javax.servlet.http.HttpServletRequest)]
    Hope it will work in your case. Good luck.
    Edited by pecanov at 07/05/2007 1:41 PM

  • How to resume Session if lost by power failure of PC ??

    Hi,
    I am beginner to JSP
    I m developing ONLINE exam system and now want to know , how to RESUME THE Session, that lost due to POWER FAIL or any SYSTEM FAILURE. or EMERGENCY RESTART OF PC ?
    HOw can i get back to perticular question ?
    please reply

    U can only login with a new session.
    <<HOw can i get back to perticular question ?
    Store information in DB :
    1) How many question he has attended ex: 20 (Total 30 questions).
    2) total time taken ex: 10min (Time duration : 30 min)
    From the above information you can easily decide :
    The user has to start from 21st question.
    Time duration for that is only 20 min
    Regards,
    Maha
    Message was edited by:
    MahalakshmiK

  • My changes in Stickies get lost

    For some strange reason, all my changes in Stickies ( the yellow post it like notes  on the desktop) seem to get lost since a few weeks/months ; any time I quit "Stickies" or close my sessions ( in a clean way !), when I re-open stickies, they show ojn the screen like they were 6 weeks ago !
    super-frustrating as I use stickies to make quick notes of things to dos etc..
    my only repair solution was to manually delete the "stickiesdatabase gfile" ( library) and start from scratch again ; seems to work ( now changes are remebrered) but I am worried to be in trouble again
    a bug ?????

    First off, your Mac shouldn't be crashing often. For the most part, I leave my PB on 24/7 and I can't remember the last time I experienced any type of crash so if this occurs often, this problem needs to be addressed and resolved first.
    How often does this occur and what type of crash?
    Does the crash including a error/warning message provided in several languages indicating you need to restart the computer?

  • How do I use the Verizon Service & Protection app to locate my phone if it gets lost?

    The Verizon Support & Protection app (VZ Protect) is installed on my phone and is supposed to help me if my phone is lost or stolen by allowing me to find it on a map, lock it, erase my data from it, etc.  But I found it nearly impossible to figure out what I should do in the event that actually did get lost or stolen.
    I logged into my My Verizon account from my computer (which is probably what I would do if I lost my phone), but unfortunately there isn't anything on the site to help a person who has actually lost their phone or had it stolen to quickly and easily locate it.  Most of the links I found were only promoting Verizon's services and the app, but nothing on how to use it.
    I tried searching for things I might type if I had actually lost my phone (like, "missing phone", "stolen phone", "find lost phone").  I had to go into the "How to Use Guide: Verizon Support & Protection" page, which I was only able to find on the  Verizon Support & Protection FAQs  page), in order to find a link that told me I had to go to the Verizon Support & Protection App website  to use this service.
    There really should be something more obvious right on the My Verizon site.

    Purchase a replacement remote.
    The remote is required for configuring the ATV and setting up the remote app on iDevices.

  • Hello Apple? How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Have you tried closing all apps via the iPad's multitasking bar and then doing a soft-reset and seeing that helps ? To close all apps :
    iOS 7: double-click the home button to open the taskbar, and then swipe or drag each app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    iOS 6 and below : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Hyperlinks from other placed indd documents or pdfs getting lost after export to PDF

    after upgrade vom CS 5.5 to CS 6: hyperlinks from other placed indd documents or pdfs getting lost after export to PDF
    I tried all options for the as well known and working export options

    after upgrade vom CS 5.5 to CS 6: hyperlinks from other placed indd documents or pdfs getting lost after export to PDF
    I tried all options for the as well known and working export options

  • I have a problem with my iphone 4. My 3G always stays activated but I lose my network signal. The bars all get lost and I'm not able to receive / send sms, mms or phone calls. Could you guys please help me fix this problem? Ios 5.1.1

    I have a problem with my iphone 4. My 3G always stays activated but I lose my network signal. The bars all get lost and I'm not able to receive / send sms, mms or phone calls. Could you guys please help me fix this problem? Ios 5.1.1

    I haven't gotten a new sim card because the problem has been presenting itself in various cards not only mine. So far, all I've done is reset my network settings.
    Last night, I turned off the 3G tab and it had all the signal bars. Today, I did the network reset and it's working apparently. But like I said before, previously the bars just disappear and the iphone only has the 3G activated.

Maybe you are looking for

  • How can I see my NOTES on iCloud

    How can I see and edit my Notes on iCloud I havde a PC

  • How to suppress row when one column has zero  using condition

    Hi Experts, How do I suppress row when one column has zero. I read it is possible using conditions. How ? Thankyou.

  • Oracle crs patch

    hello all. i have installed oracle 10g R2 10.2.0.1 and clusterware . i need to upgrade both CRS and RAC database to 10.2.0.4. oracle crs upgrade to 10.2.0.4 uses same patch which we use to upgrade oracle database 10.2.0.4. or do we have separte patch

  • Set dbid

    how to set dbid

  • APEX Form Validation

    New to APEX and PL/SQL. Am attempting to create a Page Validation to determine if a value provided by a user on a data entry form is valid. In this case I am attempting to evaluate a date field to determine if the year portion is 2006 or if it is not