当前位置:网站首页>JSESSIONID description in cookie
JSESSIONID description in cookie
2022-07-30 20:51:00 【Bright de Xuan rice 61】
1) When you access the server for the first time, you will see the Set-Cookie information in the response header (this information will only appear in the response header when you access the server for the first time)
The picture above JSESSIONID=ghco9xdnaco31gmafukxchph;Path=/acr,
The browser will set the browser's cookie according to the set-cookie information in the response header and save it
Note that this cookie will be lost when the browser is closed because the cookie expiration date is not set.
2) When the request is made again (not the first request), the browser will send the cookie to the server in the request header (this is the case for every request)
(JSESSIONID=ghco9xdnaco31gmafukxchph)
It is not difficult to find that the jsessionid of this is the same as the above jsessionid
We can also prove that our company also put the session id in the cookie, and you can see that the jsessionid is the same as the session id, as follows:
3) Why is this cookie sent on every request except the first request (in this case, the jsessionid to be exact)?
In fact, when a user accesses the server, a session will be opened for each user. How does the browser determine which user the session belongs to?The role of jsessionid is reflected: jsessionid is used to determine which session the current user corresponds to.In other words, the way for the server to identify the session is to tell the server where the client's session is in memory through jsessionid.
In fact jsessionid ==request.getSession().getId()
4) To sum up, the workflow of jsessionid can be simply represented by the following diagram:
边栏推荐
猜你喜欢
肖特基二极管厂家ASEMI带你认识电路中的三大重要元器件
Mysql——字符串函数
外包干了三年,废了...
【限时福利】21天学习挑战赛 - MySQL从入门到精通
idea plugins搜索不到插件
excel数字下拉递增怎么设置?
为什么那么多自学软件测试的人,后来都放弃了...
18.客户端会话技术Cookie
Oblique document scanning and character recognition (opencv, coordinate transformation analysis)
Common Expression Recognition Based on Face (1) - Basic Knowledge of Deep Learning
随机推荐
服务器不稳定因素
WPS怎么独立窗口显示?wps单独窗口显示怎么操作?
[The Beauty of Software Engineering - Column Notes] 31 | Is software testing responsible for product quality?
想要写出好的测试用例,先要学会测试设计
树形结构:二叉树的递归非递归遍历、BST
ENS 表情包域名火了!是炒作还是机遇?
Android Studio 实现登录注册-源代码 (连接MySql数据库)
6.3有定型性 第七章
Android studio连接MySQL并完成简单的登录注册功能
KEIL problem: [keil Error: failed to execute 'C:\Keil\ARM\ARMCC']
什么是公约数
【元胞自动机】基于元胞自动机模拟生命演化、病毒感染等实例附matlab代码
awk notes
微信读书,导出笔记
MySQL8重置root账户密码图文教程
Flink_CDC搭建及简单使用
使用map函数,对list中的每个元素进行操作 好像不用map
MySQL的Replace用法详解
转义字符笔记记录
如何制作deb包