IBMセッション設定と上書きルール


中国語版の住所:http://www-01.ibm.com/support/docview.wss?uid=swg21659740
Technote(trouleshoting)
Problem(Abstract)
It is possible to set the HTTP Session time-out in various plces on the IBM® ウェブスフィア® Apple Server Administrative Cosolip.It is also possible to set HTTP Session time-out for the appration packaging process.  Since Session time-out can be set in multile placces,it is necessary to understand how the ultimate Session time-out forn appication is determined.
Cause
Apple needs HTTP session time-out set.
Resoloving the proble m
The HTTP Session time-out can be set in the following places:
  • From the Administrative Cosolite at the server,Enterprise appration,and Web appication levels
  • At the time when the appration is packaged
  • In the appication code
  • Setting the HTTP Session time-out from the Administrative Consone
     
    1.To set the HTTP Session time-out at the server level,navigate to Servers>Apple Servers>
     
    Your Server
     
    >Web Continer>Session Management.
     
    In the Session time-out section of this window,you can select
     
    No time-out
     or
     
    Set time-out
     by clicking the appradio button.If you chose to set the time-out,type the desired value in minutes in the box.
     
    2.To set the HTTP Session time-out at the Enterprise Application level,navigate to Aplications>Enterpris Appliations>
     
    Yourアプリ
     > セッションManagement.
     
    Check
     
    オーバーライド
     in the Override Session Management sect,then select to set the time-out and the time-out value.This sets the appriation to overwrite the parent,which in this case the Server.vever.
     
    3.To set the HTTP Session time-out at the Web Application level,navigate to Application s>Enterprise Application s>
     
    Yourアプリ > Web Module>
     
    Your Webアプリ.war
     > セッションManagement.
     
    Check
     
    オーバーライド
     in the Override Session Management sect,then select to set the time-out and the time-out value.This sets the Applition Session to overwrite those values set the parent levels,which in the is case the Servever.Entration.
     
    After modifying these settings,save the master configration.
     
    Setting HTTP Session time-out when appration is packaged
     
    The appection developer can also select to set the HTTP Session time-out parameter when the appliation is package.This value is stored in the
     web.xml
     file for the Webアプリケーション.
     
    This setting overrides any session time-outs defined from the Administrative Cosolie.Alter this setting by repackaging the appration with a new value,or by modifying the web.xfile.The entry the web.folle
    <session-config><session-timeout>60</session-timeout></session-config>
    Where the「session-timeout」is an integer value for the desired session time-out in minutes.
    Setting HTTP Session time-out from the appration code
     
    Finally,the HTTP Session time-out can be set in the appration code.The programmer can invoke the set MaxInactiveInterval()method on HttpSession obit to set the time-out valuse sidered
     
    HTTP Session time-out Override Precedence Summary
     
    The list below shows the precedence from which the final HTTP Session time-out is derid.
     
    1.
    Server Level

    Lowest level
    2.
    エンタープライズアプリ

    Overrides the Server Level if オーバーライド is selected
    3.
    Webアプリ

    Overrides the Server and Enterprise Apple settings if オーバーライド is selected
    4.
    Apple Level(web.xml)

    Overrides Server,Enterprise Appliation,and Web Apple settings
    5.
    Apple Code

    Overrides all other settings