- 浏览: 20632 次
- 性别:
- 来自: 武汉
最新评论
-
jkleeo:
http://download.csdn.net/source ...
Java io 类框架 -
jkleeo:
很好!!!!!!!!!!!1
Java io 类框架 -
ws715:
wuyuwentian 写道这样做是不安全的,我们都知道coo ...
Apache.Tomcat整合,用cookie取代Tomcat之间Session的复制 -
wuyuwentian:
这样做是不安全的,我们都知道cookie的值是能被伪造的,我觉 ...
Apache.Tomcat整合,用cookie取代Tomcat之间Session的复制
文章列表
The Sawyers live at 87 King Street
In the morning.Mr Sawyer goes to work and the children go to school.
Their father takes them to school everyday.
Mr. Sawyer stays at home everyday.
She does the homework.
She always eats her lunch at noon.
in the afternoon.
She usually sees her ...
- 2010-06-27 00:28
- 浏览 853
- 评论(0)
M: Hi, my friends all over China. Now I like to introduce a new friend to you. Here she is. Rigid from the United States. W: Ladies and gentleman, I hope you all happy. This is my first opportunity to record for Liyang Crazy English. Let’s go.1. feelHow are you feeling today?–How are you feeling toda ...
李阳疯狂英语国际音标 第一节:前元音 No. 1 关键词:feel 今天你觉得怎么样? A: How are you feeling today? (今天你觉得怎么样?) B: I feel a lot better, thanks for asking. (我感觉好多了。谢谢你的关心。) 【发音秘诀】请注意,are, lot, b ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
& ...
- 2009-03-09 20:39
- 浏览 1295
- 评论(0)
private static boolean checkUserNameOfChina(String username){
boolean bool = false;
for(int i =0 ;i < username.length() ; i ++)
{
if(username.substring(i, i+1).matches("[\\u4e00-\\u9fa5]+")){
bool = true;
break;
...
- 2009-02-25 10:11
- 浏览 1363
- 评论(0)
window.parent.window.location.href = "URL";
<script type="text/javascript">
window.parent.downloadpic.src = 'images/studet_downpic/xiazai_04.jpg';
</script>
- 2009-02-23 14:39
- 浏览 3084
- 评论(0)
ps.setString(1,t.getSusername());
ps.setString(2,t.getSid());
ps.setInt(3, t.getIcount());
- 2009-02-12 16:20
- 浏览 2371
- 评论(0)
jdbc:mysql: // 192.168.1.10:3306/test?characterEncoding=UTF-8&characterSetResults=UTF-8
- 2009-02-12 11:01
- 浏览 2667
- 评论(0)
公司网站用Apache+Tomcat集群后,经过观察发现Tomcat之间的Session复制非常的消耗资源。一个Tomcat挂掉后,另外一个要复制很久才能复制完成。导致如果session很多,一个Tomcat挂掉,网站访问变得很慢.
现在改成Cookie来取替Tomcat之间的复制,具体实现方式如下:
登录时将用户信息存入一份在Session中,然后向用户的本机中插入一条cookie信息。由于去掉了Tomcat之间Session的复制所以需要用到Session业务的时候,在一个Tomcat中有session信息,如果在这个过程中被分配到另外一个Tomcat运行后就会出现找不到Session信 ...