Set session timeout in Weblogic

There are two ways user's HTTP session timeout can be set for your web application.
1.       Web.xml
2.       Weblogic.xml

Please note in web.xml the session timeout is set in minutes.

In weblogic.xml the session timeout is set in seconds.

More importantly the timeout value set in web.xml takes precedence over weblogic.xml. If you don't set any values in web.xml, weblogic.xml takes over. I think it is better to handle session timeout in web.xml itself since web.xml takes precedence over application server’s deployment descriptors.


  1. Hi Anand,
    i am a new-bee to weblogic and need to gave a hands-on on deploying simple j2ee app on weblogic sever. Could you suggest some sites/ can u get some sort of a hello world on weblogic?
    Also any basics books on weblogic would be helpful?

    Thanks a lot

  2. i did it but it not worked. ahhh

  3. Hello Bhatiya,

    Could you describe the problem?


  4. This would be really helpful to me if I can get it to work. I'm developing locally on my laptop, and am getting very tired of having my browser connections timing out on me throughout the day while I'm testing my code.

    But I'm not a weblogic expert. Where is the web.xml file that would control all my browser-based connections? I did a 'find' from the top level directory and found about 20 web.xml files, but none of them seem to reside in a high enough level directory that changing them would make any difference. Can I create a 'master' web.xml file somewhere that the server would use for everything?


  5. Hi Anonymous.Please follow this way
    Open your project in Eclipse.

    web.xml path=projectName/WebRoot/WEB-INF/web.xml

    I hope that is useful

  6. i am new to weblogic so can any on help me what is session in a simple point wise and easy way to understand that points if any examples mention it there only plz..

    1. Session is nothing but when a user is interacting with the application(clicking on any link in web page, doing any transactions in web application..etc) is treated as one session. If the user is not interacting with the application and any session is opened and not used for say about 1 min. The session will expire, if the session timeout is set to one min.

  7. if any one have resent interview Q&A were there please post it plz........

  8. hi, would like to ask a newbie question.

    Can I overwrite the timeout param programmically?

  9. Hi,
    The app is deploying and is working fine without the weblogic.xml. But my app is not timing out when the session expires, though I have specified a timeout in web.xml. I am unable to deploy my application when my weblogic.xml file is in the folder.

    Now all want is a session timeout.

    Please Help

  10. This comment has been removed by the author.

  11. This comment has been removed by the author.

  12. can anyone please throw more light on the Raghul Quer. as we are also seeing the same problem. Session are getting leaked.

  13. Please create the weblogic.xml file using the below steps, select the appropriate project then the New option, from the New Gallery select General -> Deployment Descriptors -> Weblogic Deployment Descriptor, and in the resulting dialog select the weblogic.xml file. It will be added to the project -> Web Content -> WEB-INF directory.
    Then added ur content before the . I hope this will work..

  14. I visited several websites except the audio feature for audio
    songs present at this web site is genuinely excellent.

    Also visit my web blog spiele spielen

  15. My family members always say thаt I am killing my time
    hеrе at ωeb, hоwever I κnow I am getting know-hoω еveryday by reading thes ρleasant contеnt.

    Alѕo νiѕit my blog ... videos von youtube downloaden
    My webpage:

  16. Then a splash screen that is not present on the purchased
    version "nags" for several seconds, and the background from
    the desktop is displayed on the laptop. There is an opportunity for parents to offset the teacher:
    pupil ratio through practice at home. Still, Lich King is not devoid of its flaws.

    In exchange you'll have to pay a bit more for the GT 220, as most models are around $60 or $70 dollars. Their history timeline details how the greenhouse covered 4,000 square feet, and in 1976, a 6,000 square foot greenhouse was added. But there is a magic formula. Today, the scenario is entirely different. The so-called colloidal silver "blue man," Paul Karason, was back on the Today show this week. a far cry: a long way from. Why the lack of soul-wrenching anxiety.

    My webpage :: crysis ati fix

  17. "Is there really no way to transfer my VC and Wii - Ware games from my Wii to another. Each program will have a box with a checkmark, find the programs you'd like to uninstall and uncheck that box. The player guides Phen through 10 levels of dungeon gameplay, finding a whole host of weapons and other items as well.

    Also visit my page - spiele spielen

  18. Yet another first person shooter game this time around, but the first Far Cry was quite good.

    So even at young ages and relatively low levels of
    the sport, goalies will have their helmets designed with various
    colors, prints and patterns, shapes or designs, and more.
    ' The Rooneys are a great family who turned a football franchise into a traveling nation full of fans across the United States. I don't want an strange voice to order me around.
    Many consumers worry about their security when making purchases over the internet.
    It is hard to believe that we are unable to provide the
    minimum required comfort to our old ones, destitute women and
    even orphans. They will check into a purpose built sports complex 8 miles from the venue
    of their first match in Rustenburg. Nevertheless, we're now moving on and talking about the top Xbox 360 games for 2012. The players have to buy the weapons to use from the available shops and weapon stores. There is a rarely discussed addiction that can be as enslaving as drugs and as devastating to self-respect, self-confidence and healthy functioning as alcoholism.

    My blog post:

  19. You аre so іnteresting! I do not bеlіeve I've read through something like that before. So great to find another person with some unique thoughts on this issue. Really.. thank you for starting this up. This web site is one thing that's neeԁed on the web, sоmeоne with some oгiginality!

    Feel fгee tο ѕurf to my web blog: just click the up coming post
    Also see my web site :: video downloader

  20. If there is a change in the search engine algorithms, it is also up to the service provider to keep a watch on
    such activities. Once the number of back links will increase,
    web traffic flow will enhance. You can then take a
    hard look at the companies that come up for that particular keyword.
    This can be a great tool when selling products online, as a website can be designed to offer either luxury or bargain-oriented
    goods, based on traffic analysis. Organic
    SEO uses valid and safe techniques to rank your site for its keyword.
    Enough said. Instead, the developer should concentrate on the functions mentioned in this
    article first, as they are the basis for further extension of
    the Word - Press header file. This means that they follow only the steps given to them
    by Google and other major search engines. The businesses have understood
    the need to take SEO services for attaining good search engine placement.
    What are the advantages of article submission. Use SEM experts to recognize duplicate content as part of your website, and act immediately to have it settled.
    Don't Forget to Replace the Default Favicon with Your Logo. Basically, if you create links to your website with "ink cartridges" or "printer cartridges" in the anchor text, it will help move your website up on the search results for those key words. You can Google maps link for your website, which will be very helpful if any person search in images sections. This is where your innovative SEO marketing techniques can achieve a high search ranking for your budget motel whenever a user is specifically searching for a motel at your location. A well-formed internal linking structure and good sitemap can ensure all pages of a website being indexed by a search engine. Today, it is necessary that you scout the market for the best SEO Host that can help you achieve this. Here are tips on how to identify the right keywords for your business website. You need the keyword and phrase in both title and description. SEO requires understanding of various algorithms.

    My blog post; Suggested Site

  21. Wow! Αfter all I got a web sіtе from whеrе I bе capable of
    genuinely obtain valuаble infοrmation conceгnіng my stuԁy аnԁ κnowlеdge.

    Ηегe is my webpagе:

  22. For some people, renting those games was another option, which yet
    again burns a hole in their pocket. WIFI:Als Verbindungsmoglichkeiten ins Internet
    stehen Ihnen WIFI wireless lan zu Verfugung. In fact an
    ideal online casino will make the entire gaming experience a pleasurable and a real experience to the gamer.

    Also visit my blog ... radio sender

  23. - Portion with certain human being variety numerator
    and denominator, involving 0 and a single (e. When children fit these fun video game titles into actions require time to view those facial seems to be and
    human body expressions. Although others may not have a specific machine for her, but at least
    they have most likely computers in their homes.

    my web blog ... Full Survey

  24. And then, you'll probably see that the battery's charge won't be as durable as before. As you lift out the screen you'll see it is still attached via
    a ribbon cable. Although, sound card is integrated device, it
    functions similar to brightness of the screen when talking about
    power consumption.

    my blog post :: Linwood -

  25. Pop the battery ribbon connector out and remove
    the battery, again held in with a dab of glue. Their producers imagine this can make the user a lot more mindful in the should change the batteries, lessening the
    prospect of the discover program failing through ability
    loss. For the first generation, you'll need to release the back cover from the unit by running a shim along the edge of the unit to release all of the clips holding the backing on.

    Here is my webpage :: gratis spiele spielen

  26. With dοzens of rаԁiο apps foг і
    - Phοnе available in i - Tunеs, thеre іs an aρp fоr eѵery саtegory of muѕic
    lover tο loνе. Аlѕo, by hаving a rаԁio internshiр in yοuг гesume, there is a bettег
    chanсe fоr you to becοmе a DJ when you applу for a job in аny raԁio station in the nаtion.
    Τhis not only allows listenerѕ tо listеn to their favorite MP3
    files аlοng with theіr ЅIRIUS radio; іt alsο
    lеts them digitally гeсord thеir
    favοrіte rаdiο ѕоngs foг instant playbaсk.

    Have a looκ at mу page: internetradio

  27. Hi Friends,
    I am facing issue as I could not upload 40000 file into my application

  28. Hello All,

    my application server is weblogic server.
    i am getting 490 response code and Your session expired due to inactivity in response body.

    what could be the problem for the same

  29. I know web.xml method but I am looking for weblogic.xml methods regarding my weblogic administration training to handle this task.thank you for helpful post.

  30. Penggemar Judi Online gak boleh lewatin info penting satu ini. Kali ini panduan tentang Deposit Pulsa XL Telkomsel ke akun Sbobet Online kamu. Hah ? Main judi pake pulsa ? Memang bisa ? (Baca Selengkapnya Disini...)

  31. Session Invalidation on browser exit in ADF how to handle