`
遠大前程
  • 浏览: 7113 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

Setting session timeout

阅读更多
Two ways to set session timeout:
1.Configuring session timeout in the DD:
<web-app ..>
<servlet>
...
</servlet>
<session-config>
   <session-timeout>15<session-timeout>
</session-config>
</web-app>

2.Setting session timeout for a specific session:
session.setMaxInactiveInterval(20*60);

3.session.invalidate()      //here we invalidate the session.

分享到:
评论

相关推荐

    php.ini-development

    Turning on this setting and managing its maximum buffer size can yield some ; interesting side-effects depending on your application and web server. ; You may be able to send headers and cookies ...

    ASP.NET配置文件Web.config 详细解释

    &lt;sessionState mode="InProc" timeout="20" /&gt; ``` - `mode` 属性定义了会话状态的存储方式,`timeout` 设置了会话的超时时间。 10. **&lt;trace&gt; 标签** - `&lt;trace&gt;` 标签用于配置 ASP.NET 的跟踪功能。 - ...

    loadrunner常用报错整理

    在Run-time setting窗口中找到'Internet Protocol'-&gt;'Preferences',在'Advanced options'中调整'HTTP-request connect timeout (sec)'的值。 2. Error -10057: "Failed to transmit data to network: socket is ...

    Java邮件开发Fundamentals of the JavaMail API

    take advantage of protocols for which Sun does not provide out-of-the-box support. You'll find support for NNTP (Network News Transport Protocol) [newsgroups], S/MIME (Secure Multipurpose Internet ...

    simplewebrtc.js webrtc网页视频开发帮助工具

    self.emit('ready', connection.socket.sessionid); self.sessionReady = true; self.testReadiness(); }); connection.on('message', function (message) { var existing = self.pcs[message.from]; if ...

    pyloris-3.2-win32

    Setting the --timebetweenconnections flag will adjust the amount of time between socket connections. This will directly affect how quickly the target's connection limit is reached. Proxy Options ...

    微软内部资料-SQL性能优化3

    To make use of either more or less strict isolation levels in applications, locking can be customized for an entire session by setting the isolation level of the session with the SET TRANSACTION ...

    软件测试工具_QTP教程

    - **Object Synchronization Timeout Second**:设置整个测试脚本的同步点等待时间。 - **Save Images**:设定是否在出错时保存截图至桌面。 - **参数设置(Parameters)**: - **Input Parameters**:从QC(质量...

    软件测试之QTP新手入门

    - **Object Synchronization Timeout Second**: 设置整个测试脚本的同步点等待时间。如果在规定时间内对象没有出现,则测试会报错。 - **Save Images**: 可以选择在测试出错时保存截图到桌面或其他指定位置。 #### ...

    Servlets和JSP核心技术 卷2(英文版) 第一部分

    Example: An Access Time Filter Section 5.7. Blocking the Response Section 5.8. Example: A Prohibited-Site Filter Section 5.9. Modifying the Response Section 5.10. Example: A Replacement Filter ...

    Servlets和JSP核心技术 卷2(英文版) 第二部分

    Example: An Access Time Filter Section 5.7. Blocking the Response Section 5.8. Example: A Prohibited-Site Filter Section 5.9. Modifying the Response Section 5.10. Example: A Replacement Filter ...

    JLink_Windows_V648.zip

    DLL: Windows: Renesas RX: When using FINE interface and disabling ongoining debug mode on debug session close, it could happen that a thread was not exited gracefully, causing handle leaks. Fixed. DLL...

    CE中文版-启点CE过NP中文.exe

    GUI: Fixed and restored the DPI Aware option in setting GUI: Some DPI fixes/adjustments here and there Graphical Memory view: Fixed DPI issues Symbolhandler: When the symbolhandler now waits till it's...

    ZendFramework中文文档

    Setting a Date 9.3.2.3. Adding and Subtracting Dates 9.3.2.4. Comparation of dates 9.4. Zend_Date API Overview 9.4.1. Zend_Date Options 9.4.1.1. Selecting the date format type 9.4.1.2. DST and ...

    UE(官方下载)

    Parsing XML can be a time-consuming task, especially when large amounts of data are involved. As of v15.10, UltraEdit provides you with a the XML Window for the purpose of parsing ...

    unigui0.83.5.820

    - 0000445: Customizable Timeout and Terminate pages. - 0000558: Customizable End of Session - 0000748: Field property for DB aware controls - 0000747: AV when trying to access the property ...

    hibernate.properties

    #hibernate.c3p0.timeout 5000 #hibernate.c3p0.max_statements 100 #hibernate.c3p0.idle_test_period 3000 #hibernate.c3p0.acquire_increment 2 #hibernate.c3p0.validate false ############################...

    Mask 98 for PRwin98

    It carries this out using unique 'Run-time Monitoring and Manipulation Technology' (RMMT) developed over many years, and which has culminated in this highly original product. Mask for Windows - ...

Global site tag (gtag.js) - Google Analytics