当前位置:网站首页>What is the difference between session and cookie?? Xiaobai came to tell you
What is the difference between session and cookie?? Xiaobai came to tell you
2022-07-25 11:52:00 【Whew, fly over】
conversation :
A call between browser and server , It's the customer and Web A series of interactions between servers
// sission: Effective in a conversation
// invalidate(String key) ==>> Set up session Object invalidation
// remove session ==>> removeAttrbute()
// Every session For a window , For each browser session Is not the same , Open a new window through hyperlinks ,session unchanged
// cookie object : Effective in a conversation , And all stored are texts
// Cookie cookid = new Cookie("myName"," Cao xueqin ");
// Set up Cookie Failure time , The unit is in seconds
// cookie.setMaxAge(10);
// write in Cookie:
// reponse.addCookie(cookie);
session Is based on cookie Realized , So if cleared cookie be session It's gone ;
边栏推荐
- 【mysql学习09】
- 信号与槽机制==PYQT5
- Leetcode sword finger offer 27. image of binary tree
- Summary of combination problems of Li Kou brush questions (backtracking)
- [imx6ull notes] - a preliminary exploration of the underlying driver of the kernel
- Onenet platform control w5500 development board LED light
- 世界上最高效的笔记方法(改变你那老版的记笔记方法吧)
- 30套中国风PPT/创意PPT模板
- PL/SQL入门,非常详细的笔记
- SQL language (III)
猜你喜欢

Game backpack system, "inventory Pro plug-in", research and learning ----- mom doesn't have to worry that I won't make a backpack anymore (unity3d)
![[USB device design] - composite device, dual hid high-speed (64BYTE and 1024byte)](/img/ce/534834c53c72a53fd62ff72a1d3b39.png)
[USB device design] - composite device, dual hid high-speed (64BYTE and 1024byte)

什么是全局事件总线?

教你如何通过MCU配置S2E为TCP Server的工作模式

Oil monkey script link

基于MATLAB的常见线性调制方法

30套中国风PPT/创意PPT模板

Management of software defects

Differences in usage between tostring() and new string()
![[MySQL learning 08]](/img/9e/6e5f0c4c956ca8dc31d82560262013.png)
[MySQL learning 08]
随机推荐
绘图==PYQT5
JS中的函数
brpc源码解析(七)—— worker基于ParkingLot的bthread调度
Use three.js to realize the cool cyberpunk style 3D digital earth large screen
JS data types and mutual conversion
基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
"Mqtt protocol explanation and Practice (access to onenet)" of wiznet w5500 series training activities
已解决The JSP specification requires that an attribute name is preceded by whitespace
SQL language (II)
Layout management ==pyqt5
SQL injection less23 (filter comment)
There is no sound output problem in the headphone jack on the front panel of MSI motherboard [solved]
Menu bar + status bar + toolbar ==pyqt5
Learn NLP with Transformer (Chapter 1)
SQL injection less17 (error injection + subquery)
谣言检测文献阅读十一—Preventing rumor spread with deep learning
Functions in JS
菜单栏+状态栏+工具栏==PYQT5
Activity registration | play with kubernetes container service improvement class officially opened!
RedisUtil