cookie是如何保存到客户端,又是如何发送到服务端
摘要:Cookie相关的Http头 有 两个Http头部和Cookie有关:Set-Cookie和Cookie。 Set-Cookie由服务器发送,它包含在响应请求的头部中。它用于在客户端创建一个Cookie Cookie头由客户端发送,包含在HTTP请求的头部中。注意,只有cookie的domai...
阅读全文
posted @
2016-01-14 15:04
silentjesse
阅读(5409)
推荐(0)
session cookie
摘要:Session存储在服务器端,一般为了防止在服务器的内存中(为了高速存取),Sessinon在用户访问第一次访问服务器时创建,需要注意只有访问JSP、Servlet等程序时才会创建Session,只访问HTML、IMAGE等静态资源并不会创建Session,可调用request.getSession...
阅读全文
posted @
2016-01-14 14:58
silentjesse
阅读(273)
推荐(0)
JSESSIONID、SESSION、cookie .
摘要:所谓session可以这样理解:当与服务端进行会话时,比如说登陆成功后,服务端会为用户开壁一块内存区间,用以存放用户这次会话的一些内容,比如说用户名之类的。那么就需要一个东西来标志这个内存区间是你的而不是别人的,这个东西就是session id(jsessionid只是tomcat中对session...
阅读全文
posted @
2016-01-13 21:08
silentjesse
阅读(641)
推荐(0)
position absolute定位之所属的containing box
摘要:http://www.w3.org/TR/CSS2/visudet.html#containing-block-detailshttp://www.zhihu.com/question/19926700
阅读全文
posted @
2015-03-23 22:59
silentjesse
阅读(241)
推荐(0)
关于float样式
摘要:在认识float样式之前务必要认识position:absoluteposition:absolute功能是:当前节点脱离文档流,对于其兄弟节点(即同一父节点下的节点)已经感觉不到他的存在(即他的位置已经被其兄弟结点占用了,即使他里面还有内容也不给腾位置,他就只能漂浮着)。他可以漂浮在其父节点所覆盖...
阅读全文
posted @
2015-03-23 17:55
silentjesse
阅读(738)
推荐(0)
-webkit-user-select
摘要:-webkit-user-select: none;//不可选-webkit-user-select: auto; //可复制
阅读全文
posted @
2015-03-23 15:54
silentjesse
阅读(2611)
推荐(0)
event.keyCode与event.which
摘要://Netscape/Firefox/Opera中不支持 window.event.keyCode,需要用event.which代替//IE用event.keCode方法获取当前被按下的键盘按键值,//而NetScape/FireFox/Opera用的则是event.which例:
阅读全文
posted @
2014-11-19 10:04
silentjesse
阅读(2021)
推荐(2)
html 内联函数宽度设置
摘要:width and/or height in tables are not standard anymore; as Ianzz says, they are depreciated. Instead the best way to do this is to have a block elemen...
阅读全文
posted @
2014-10-15 12:53
silentjesse
阅读(594)
推荐(0)
javascript 之 浏览器宽度、高度总结
摘要://alert(window.screen.availHeight );//ie可见高度//firefox的整个浏览器的高度(包括工具栏) //alert(document.body.scrollHeight );//ie 的所有高度 //firefox的可见高度 //alert(document...
阅读全文
posted @
2011-11-10 12:44
silentjesse
阅读(262)
推荐(0)