当前位置: 首页 > 编程日记 > 正文

IBM会话设置和覆盖规则

为什么80%的码农都做不了架构师?>>>   hot3.png

中文版地址:http://www-01.ibm.com/support/docview.wss?uid=swg21659740

Technote (troubleshooting)


Problem(Abstract)

It is possible to set the HTTP Session time-out in various places on the IBM® WebSphere® Application Server Administrative Console. It is also possible to set HTTP Session time-out for the application packaging process. 

Since Session time-out can be set in multiple places, it is necessary to understand how the ultimate Session time-out for an application is determined.

Cause

Application needs HTTP session time-out set.

Resolving the problem

The HTTP Session time-out can be set in the following places:

  • From the Administrative Console at the server, Enterprise application, and Web application levels
  • At the time when the application is packaged
  • In the application code

Setting the HTTP Session time-out from the Administrative Console
1. To set the HTTP Session time-out at the server level, navigate to Servers > Application Servers > Your Server > Web Container > Session Management.

In the Session time-out section of this window, you can select No time-out or Set time-out by clicking the appropriate radio button. If you choose 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 Applications > Enterprise Applications > Your Application > Session Management.

Check Override in the Override Session Management section, then select to set the time-out and the time-out value. This sets the application session to overwrite those values set at the parent, which in this case is the Server level.


3. To set the HTTP Session time-out at the Web Application level, navigate to Applications > Enterprise Applications > Your Application > Web Module > Your Web App.war > Session Management.

Check Override in the Override Session Management section, then select to set the time-out and the time-out value. This sets the Application Session to overwrite those values set at the parent levels, which in this case is the Server or Enterprise Application level.

After modifying these settings, save the master configuration.

Setting HTTP Session time-out when application is packaged

The application developer can also select to set the HTTP Session time-out parameter when the application is packaged. This value is stored in the web.xml file for the Web application.

This setting overrides any session time-outs defined from the Administrative Console. Alter this setting by repackaging the application with a new value, or by modifying the web.xml file. The entry in the web.xml will be as follows:
<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 application code

Finally, the HTTP Session time-out can be set in the application code. The programmer can invoke the setMaxInactiveInterval() method on HttpSession object to set the time-out value as desired. This setting overrides any time-out defined in the application package or made from the Administrative Console.

HTTP Session time-out Override Precedence Summary

The list below shows the precedence from which the final HTTP Session time-out is derived.

1.Server LevelLowest level
2.Enterprise ApplicationOverrides the Server Level if Override is selected
3.Web ApplicationOverrides the Server and Enterprise Application settings if Override is selected
4.Application Level (web.xml)Overrides Server, Enterprise Application, and Web Application settings
5.Application CodeOverrides all other settings

转载于:https://my.oschina.net/psuyun/blog/366948

相关文章:

FOSCommentBundle功能包:设置Doctrine ODM映射

Step 2b: Setup MongoDB mapping The MongoDB implementation does not provide a concrete Comment class for your use,you must create one: MongoDB实现并不提供为您所用的具体评论类&#xff0c;您必须要创建一个。 1234567891011121314151617181920212223<?php// src…

lighttpd 负载均衡-反向代理+cache浅谈

Lighttpd有硬盘级别的cache-(mod_cache)和内存级别的cache(mod_mem_cache&#xff09;&#xff0c;内存级别的cache是国人的产品&#xff0c;我喜欢用lighttpd就是因为它具有2种选择的cache&#xff0c;像我的实际需求&#xff0c;由于系统存在很多图片&#xff0c;但是容量不大…

设置网页标题图标

网页图标如图上位置 设置语句如下&#xff1a; link rel:"SHORTCUT ICON", href:"/images/logo.ico"

DeepMind 的新强化学习系统,是迈向通用人工智能的一步吗?

作者&#xff1a;Ben Dickson来源&#xff1a;数据实战派前言尽管已经掌握围棋、星际争霸 2 和其他游戏&#xff0c;深度强化学习模型的主要挑战之一是&#xff0c;它们无法将其能力泛化到训练领域之外。这种限制使得将这些系统在现实世界中的应用变得非常困难&#xff0c;因为…

无法访问D盘,执行页内操作时的错误

打开D盘后出现“无法访问D:/,执行页内操作时的错误”怎么办&#xff1f;既便D盘有病毒也不会出现这种状况&#xff0c;初步判断是D: 分区表错误&#xff0c;用系统安装光盘开机进入纯DOS下的修复模式中用 CHKDSK /R 或 /F来修复一下试试看。在cmd下输入chkdsk空格d:空格/f本文转…

怎样修改Ubuntu的root帐户密码并使用root登录

Ubuntu版本11.04 Ubuntu是一套基于Debian的Linux系统&#xff0c;它追求的是“Just Work”&#xff0c;最新的7.10版本发布于2007年10月&#xff0c;不同于其他Linux发行版本&#xff0c;Ubuntu的所有版本都是免费的&#xff0c;包括企业版。第一次安装Ubuntu&#xff0c;发现比…

CSDN 开学见面礼!限时免费申请,手慢无!

暑假即将结束&#xff0c;金秋开学季来袭。别让年轻的自己虚度光阴&#xff0c;现在扫码申请学习资格&#xff0c;10&#xff0b;场考前辅导&#xff0c;600&#xff0b;分钟大咖讲解与答疑直播免费看&#xff01;大厂CTO级别导师陪你加buff&#xff01;3周带你掌握大厂工程师基…

【No.1_sizeof与strlen】

【注意】 程序语言只是我们与计算机交流并让计算机实现我们创造性思想的工具&#xff0c;可以并鼓励深入掌握一门语言&#xff0c;但千万别沉迷于钻某种语言的牛角尖&#xff0c;一定要把握好二者间的度 本帖属不定时连载贴&#xff0c;以试卷的形式提出一个比较基础的问题供大…

Linux: CentOS 7下搭建高可用集群

转载&#xff1a; http://linux.cn/article-3963-1.html本文以两台机器实现双集热备高可用集群&#xff0c;主机名node1的IP为192.168.122.168 &#xff0c;主机名node2的IP为192.168.122.169 。一、安装集群软件必须软件pcs&#xff0c;pacemaker&#xff0c;corosync&#xf…

史上最大规模 DDoS 攻击,每秒 1720 万次 HTTP 请求

整理 | 禾木木 出品 | AI科技大本营&#xff08;ID:rgznai100&#xff09; 互联网基础设施公司 Cloudflare 表示&#xff0c;已化解了迄今为止所记录的最大规模的容量耗尽分布式拒绝服务&#xff08;DDoS&#xff09;攻击。 近日&#xff0c;互联网基础设施服务提供商 Cloudfl…

如何查看当前Linux的版本

查看linux的版本主要有三种方法&#xff1a;1) 登录到服务器执行 lsb_release -a &#xff0c;即可列出所有版本信息&#xff0c;例如&#xff1a;[root3.5.5Biz-46 ~]# lsb_release -a LSB Version: 1.3Distributor ID: RedHatEnterpriseASDescription: Red Hat Enterprise Li…

AIX5.3安装bash shell

一、下载bash shell&#xff0c;地址是&#xff1a;ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/bash/ 二、安装bash shell,rpm -ivh bash-3.2-1.aix5.2.ppc.rpm三、你现在就可以用了&#xff0c;赶紧bash试试&#xff01;----你可能会有疑问我的系统的是…

经典算法题每日演练——第六题 协同推荐SlopeOne 算法

原文:经典算法题每日演练——第六题 协同推荐SlopeOne 算法相信大家对如下的Category都很熟悉&#xff0c;很多网站都有类似如下的功能&#xff0c;“商品推荐”,"猜你喜欢“&#xff0c;在实体店中我们有导购来为我们服务&#xff0c;在网络上 我们需要同样的一种替代物&…

基于 Python 环境搭建 - YOLO 实现吸烟行为监测

作者|李秋键 出品|AI科技大本营(ID:rgznai100) 引言 目标检测是一种与计算机视觉和图像处理有关的计算机技术, 用于检测数字图像和视频中特定类别的语义对象 (例如人、建筑物或汽车等), 其在视频安防,自动驾驶, 交通监控, 无人机场景分析和机器人视觉等领域有广阔的应用前景。近…

Ubuntu 下安装thttpd Web服务器

不知道大家是不是真的需要用appache这么复杂的功能这么强大的web server&#xff0c;其实有很多时候使用webserver也只是一种远程共享访问的方式。这里&#xff0c;Ubuntu repository的提供了一个简单的web server&#xff0c;名为thttpd&#xff0c;即 tiny http daemon. th…

mysql 新增 删除用户和权限分配

1. 新增用户 mysql>insert into mysql.user(Host,User,Password) values("localhost","lionbule",password("hello1234")); mysql>flush privileges; 2. 修改用户密码 mysql>update mysql.user set passwordpassword(new password)…

简历空空,如何编写一个面试时能拿的出手的真实项目?

最近&#xff0c;新一波的秋招全面开启&#xff0c;各大互联网行业像腾讯、百度、美团、哔哩哔哩&#xff0c;都加入到招聘队伍&#xff0c;秋招面试也进入白热化。作为一名求职者&#xff0c;要想在招聘浪潮中抢先一步&#xff0c;锁定大厂Offer&#xff0c;现在就要着手准备起…

mysql通过查看跟踪日志跟踪执行的sql语句

在SQL SERVER下跟踪sql采用事件探查器&#xff0c;而在mysql下如何跟踪sql呢&#xff1f; 其实方法很简单&#xff0c;开启mysql的日志log功能&#xff0c;通过查看跟踪日志即可。 开启mysql的日志log方法&#xff1a; windows环境下的配置方法&#xff1a; 我使用的版本&#…

用thttpd做Web Server

httpd是busybox中自带的web server&#xff0c;功能弱&#xff0c;不支持认证和CGI。thttpd和boa都支持认证CGI&#xff0c;功能比较全&#xff0c;Boa是一个单任务的小型http服务器&#xff0c;设计的小型系统不要数据库操作,所以可以使用thttpd作为server.1. 编译thttpdccarm…

ii第六单元 文本处理工具

linux中常用的基础命令 diff 命令 patch 命令 grep 命令 Cut 命令 sort 命令 uniq 命令 tr 命令 sed 命1.diff 命令 比较两个文件的不同 用于创建补丁文件 diff -u file file.new >file.path ##生成补丁文件 yum install patch -y ##安装打补丁工具 &#xff08;1&…

Powershell管理系列(十)邮件联系人及邮件用户的管理

鉴于有些用户不太熟悉邮件联系人、邮件用户的区别&#xff0c;博文首先介绍下用户邮箱、邮件联系人、邮件用户的概念&#xff0c;以下介绍部分博文摘自winos微软中文技术论坛。---------------------------------------------------------------------------------------------…

移植 thttpd Web服务器

从http://www.acme.com/software/thttpd/ 下载thttpd 到/tmp 目录当中&#xff0c;并解压. 编译thttpd [armlocalhost thttpd-2.25b]$ CCarm-linux-gcc ./configure --hostarm-linux [armlocalhost thttpd-2.25b]$ vi Makefile 指定静态链接二进制文件 LDFLAGS -static …

懂外语、会创作,机器高质量学习挑战均在这里实现

编译 | 禾木木 出品 | AI科技大本营&#xff08;ID:rgznai100&#xff09; 近年来人工智能在不断的发展中&#xff0c;机器不仅已经学会了英语写作&#xff0c;也正在学习其它语言。 德国 Aleph Alpha 已经构建了世界上最强大的 AI 语言模型之一。它不仅能说流利的英语&#xf…

JPA 复杂查询 - Querydsl

添加依赖 <!--query dsl --> <dependency> <groupId>com.querydsl</groupId> <artifactId>querydsl-jpa</artifactId> </dependency> <dependency> <groupId>com.querydsl</groupId> <artifactId>qu…

服务器端开发经验总结 Linux C语言

简介在进行服务器端开发的时候需要考虑一些算法和性能问题&#xff0c;经过了几年的开发&#xff0c;对这方面有了一些经验&#xff0c;现在写下来跟大家分享和讨论。我主要是在Linux下进行C语言的开发&#xff0c;所以后面的实现都是基于Linux操作系统并用C语言来讲解。其它平…

Backbone.js学习笔记 Hello World!

使用Backbone.js 和 MVC 架构创建一个典型的Hello world项目。虽然是“杀鸡用牛刀了”&#xff0c;毕竟是我第一次使用Backbone.js 依赖 jQuery 1.9.1Undersore.js 1.5.0Backbone.js开始 <!doctype html> <html> <head> <meta charset"utf-8"&g…

一文速览机器学习的类别(Python代码)

作者&#xff1a;泳鱼来源&#xff1a;算法进阶机器学习按照学习数据经验的不同&#xff0c;即训练数据的标签信息的差异&#xff0c;可以分为&#xff1a;*监督学习&#xff08;supervised learning&#xff09;*非监督学习&#xff08;unsupervised learning&#xff09;*半监…

Linux下分割与合并文件的方法

Linux下分割与合并文件的方法 切割合并文件在linux下用split和cat就可以完成。下面举些实例进行说明。1.文件切割文件切割模式分为两种&#xff1a; 文本文件 二进制模式。 1.1文本模式 文本模式只适用于文本文件&#xff0c;用这种模式切割后的每个文件都是可读的。文本模式又…

将网站程序放在tmpfs下

将网站程序放在tmpfs下然后用nginx直接做对外服务呢varnish或者squid都是利用内存和它的连接数来做到加速服务.但是如果是squid->nginx->fastcgi->mysql这样当中很多连接是开销在内部的连接之中而且如果客户端请求php.squid还需要将请求再转发至nginx,然后nginx再转发…

docker 连接容器

1.通过端口映射 sudo docker run -d -P training/webapp python app.py 容器有一个内部网络和IP地址&#xff08;在使用Docker部分我们使用docker inspect命令显示容器的IP地址&#xff09; -P 标记创建一个容器&#xff0c;将容器的内部端口随机映射到主机的高端口49000到4990…