01. Cookie introduction HTTP protocol is a stateless protocol. Once the data exchange is completed, the connection between the client and the server is closed, and a new connection needs to be established to exchange data again, which means that the server cannot track the session from the connection. That is to say, even after […]
Tag: cookies
How to use Selenium to handle cookies, I learned it thoroughly today
01 Cookie introduction HTTP protocol is a stateless protocol. Once the data exchange is completed, the connection between the client and the server is closed, and a new connection needs to be established to exchange data again, which means that the server cannot track the session from the connection. That is to say, even after […]
JavaScript local storage (solve cross-domain issues, session domain and cookies cannot be set from the backend)
1. Method javaScriptThere are four main methods of local caching: cookies sessionStorage localStorage indexedDB cookie Cookie, a type of “small text file”, refers to the data that some websites store on the user’s local terminal in order to identify the user’s identity. It is to solve the problems caused by HTTP statelessness As a small […]
Cookies and Sessions
Expansion of the preface: In the previous stage of learning front-end literacy, the author wrote a simple and easy-to-read confession wall project. The specific front-end code is as follows: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Confession wall</title> <style> /* * Wildcard selector, selects all elements on the […]
Decrypting Web Security: The Mysteries of Session, Cookies and Tokens
Decrypting Web Security: The Mysteries of Session, Cookie and Token Preface Part 1: What are Session, Cookie and Token 1. Session: 2. Cookie (HTTP Cookie): 3. Token: Compare: Part 2: The secret of cookies Create, read and delete cookies: Cookie persistence and security: Part 3: In-depth understanding of user sessions (Session) What is a user […]
Use cookies to store login data and implement automatic user login
1. Introduction to Cookies What are cookies? Cookies are small data saved by web projects on the client Widely used to save usernames and passwords on websites you have logged in, or click the search box to pop up search records on websites with search records A few notes on cookies: 1. The size of […]
Understand the differences between cookies, Session, Token, and JWT in one article
1. What is Authentication In layman’s terms, it is to verify the identity of the current user and prove that “you are yourself” (for example: when you clock in and out every day, you need to clock in with your fingerprint. When your fingerprint matches the fingerprint entered in the system, the clock in is […]
How to use cookies in the Gin framework (session control)
Reference address Set and get Cookie | Gin Web Framework (gin-gonic.com)https://gin-gonic.com/zh-cn /docs/examples/cookie/ What are cookies Cookies can be found everywhere on the Internet, specifically as follows: Keep me logged in Save browser history Big data can be configured as you wish, and messages can be pushed according to your preferences. Shopping website add to shopping […]
Understand cookies in http! C/C++ implements HTTP cookies on the network
HTTP Sniffing is a network monitoring technology that intercepts and analyzes HTTP packets transmitted on the network to obtain sensitive information or carry out attacks. Among them, a sniffer (Sniffer) is a tool used to sniff HTTP traffic. In HTTP sniffing, cookies are a commonly used sensitive information. A cookie is a small piece of […]
Cookies and Sessions
Table of Contents 1. What are cookies? 2. What is Session? 2.1 Session usage process 3. The difference between Cookie and Session 4. Core methods 4.1 Session methods in HttpServlet 4.2 Methods in the HttpSession class 4.3 Methods in Cookie class 1. What is Cookie? Cookies are a mechanism for browsers to store data locally […]