当前位置:网站首页>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:

边栏推荐
- 为什么那么多自学软件测试的人,后来都放弃了...
- 365天挑战LeetCode1000题——Day 044 按公因数计算最大组件大小 并查集
- Running the evict task with compensationTime
- 2022年SQL经典面试题总结(带解析)
- 2022-07-29 mysql/stonedb慢SQL-Q17-分析
- 都在说软件测试没前途,饱和了?为何每年还会增加40万测试员?
- chrome extension: how to make the dialog be on the right side of the current window?
- 第04章 逻辑架构【1.MySQL架构篇】【MySQL高级】
- c语言:操作符详解
- 化二次型为标准型
猜你喜欢
随机推荐
明解C语言第六章习题
mpls简介
2022年SQL经典面试题总结(带解析)
Cookie中的JSESSIONID说明
软考 --- 数据库(6)数据仓库、分布式数据库
excel数字下拉递增怎么设置?
awk notes
vlookup函数匹配不出来的原因及解决方法
bebel系列- 插件开发
Android Studio 实现登录注册-源代码 (连接MySql数据库)
第03章 用户和权限管理【1.MySQL架构篇】【MySQL高级】
KingbaseES TOAST存储方式
ENS 表情包域名火了!是炒作还是机遇?
ceph的部署练习
opencv,numpy,tensor格式转换
KEIL problem: [keil Error: failed to execute 'C:\Keil\ARM\ARMCC']
树形结构:二叉树的递归非递归遍历、BST
4年测试经验去面试10分钟就被赶出来了,面试官说我还不如应届生?都这么卷吗...
MYSQL JDBC图书管理系统
Recommendation system-model: FNN model (FM+MLP=FNN)





![[The Beauty of Software Engineering - Column Notes] 31 | Is software testing responsible for product quality?](/img/6a/640763e3bd6c28f3e7fa762798b0ae.png)


![[NISACTF 2022]下](/img/f7/264fbbf3ffc986b9759912c310a080.png)
