我想知道request.getSession().setAttribute设置的值存放在电脑的哪个文件里?

soarsoar77 2013-02-28 11:10:30
有谁知道吗?request.getSession().setAttribute设置的session值在电脑中是如何存放的,存放在哪个文件下?
...全文
1455 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
maoruiwen 2013-03-02
  • 打赏
  • 举报
回复
肯定不会存在文件中。 每次客户端打开 都要去文件中加载 多费劲。。留本省就消耗内存。这样会出事的。
soarsoar77 2013-03-01
  • 打赏
  • 举报
回复
但是我感觉session值应该是存放在服务器中的某个文件内的,一个客户端关闭后,服务器再把该客户的session从文件中清除掉 不然同时连接的客户端一多的话,服务器内存马上就消耗完了,这不现实啊
Horrison 2013-02-28
  • 打赏
  • 举报
回复
request.getSession().setAttribute
session是以key,value的形式存储在服务器的内存中的。 表示一个会话过程,用sessionId来标识唯一
xb12369 2013-02-28
  • 打赏
  • 举报
回复
李荣强 2013-02-28
  • 打赏
  • 举报
回复
引用 楼主 soarsoar77 的回复:
有谁知道吗?request.getSession().setAttribute设置的session值在电脑中是如何存放的,存放在哪个文件下?
他是存人一个map集合中的,应该不是放在一个文件中,估计会缓存起来;session是放在服务端,而cookie是浏览器端,
xiejiangmi 2013-02-28
  • 打赏
  • 举报
回复
同上;不是电脑某个文件。
  • 打赏
  • 举报
回复
stackContent里面
chengxu2011 2013-02-28
  • 打赏
  • 举报
回复
是放在你服务器的内存中的 它不是Cookie,所以不能什么都用session,不然服务器会吃不消的
kissoday 2013-02-28
  • 打赏
  • 举报
回复
引用 6 楼 huozhicheng 的回复:
Java code ? 1 request.getSession().setAttribute session是以key,value的形式存储在服务器的内存中的。 表示一个会话过程,用sessionId来标识唯一
完美答案
码之魂 2013-02-28
  • 打赏
  • 举报
回复
牛逼...
luojitao1020 2013-02-28
  • 打赏
  • 举报
回复
是存放在服务器内存中....
x234443544 2013-02-28
  • 打赏
  • 举报
回复
session是存放在服务端的内存中的,随着客户端的网页关闭而消失
小蝸牛 2013-02-28
  • 打赏
  • 举报
回复
在服务器内存中,cookies才存在电脑上
wyx100 2013-02-28
  • 打赏
  • 举报
回复
回复于: 2013-02-28 14:00:05 XML/HTML code?1234567891011121314151617 <div> <textarea cols="80" rows="10" id="plcontent"></textarea> </div> <script type="text/javascript" charset="utf-8" src="<%=request.getContextPath()%>/kindeditor3.5.2/kindeditor.js"></script> <script type="text/javascript"> KE.show({ id:'plcontent', /* width:300, */ /* height:250, */ resizeMode:1, allowUpload : true, imageUploadJson : '<%=request.getContextPath()%>/com/uploadkindeditor', fileManagerJson : '<%=request.getContextPath()%>/com/kindeditorfilemanager', allowFileManager : false }); </script>
wyx100 2013-02-28
  • 打赏
  • 举报
回复
stackContent里面
装死的蛇 2013-02-28
  • 打赏
  • 举报
回复
放在C:\WINDOWS\system32\icsxml\cmnicfg.xml 文件内, 用记事本打开就可以看到, 里面都是key-value存放的 。 希望能帮到你

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧