1. Background Currently there is a project online environment using spring session management login There are two interfaces in the project A cookie used to log in. After successful login, a cookie will be set, and subsequent requests will use this cookie (the key value of the cookie is the session ID and the information […]
Tag: kie
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 […]
session and cookie mechanism
2023.10.23 Domain Object Let me first summarize the domain objects I know so far: request (corresponding class name: HttpServletRequest) Request domain (request level) session (corresponding class name: HttpSession) Session domain (user level) application (corresponding class name: ServletContext) Application domain (project level, shared by all users.) The size relationship between these three domain objects request < […]
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 […]
XSS types || Defense methods || Bypass || Principle || Miscellaneous knowledge || mxss || uxss || cookie || session || jwt
XSS types || Defense methods || Bypass || Principle || Miscellaneous knowledge || mxss || uxss || cookie || session || jwt Three types of XS attacks **Reflective XSS: **Not persistent. It is a type that needs to trick users into clicking on a specific link to trigger. Usually, it is necessary to trick users […]
JavaWeb–Cookie and Session
Table of Contents 1 Introduction 1.1. What is a session? 1.2. The role of conversation 1.3. Commonly used conversational technologies 1.4. Cookies 1.4.1 What are cookies? 1.4.2. Cookie description 1.4.3. Creation of Cookies 1.4.4. Record the customer’s last login time ?edit 1.5、Session 1.5.1. What is Session? 1.5.2. Obtain Session object 1.5.3. Under what circumstances will […]
Cookie and Session Workflow
*TOC](Cookie and Session workflow) Cookies are a mechanism for browsers to persistently store data locally. What are cookies and sessions 1.Where does cookie data come from? The server returns to the browser 2.Cookie data format Cookies contain data in a key-value pair structure, and the key-value pairs here are all defined by programmers themselves. 3.What […]
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 […]
01_Cookie&WebStorage
1 Cookie The use of cookies must be based on the web server, because the operation of cookies will follow the http request. Cookies, sometimes also used in the plural form Cookies. The type is “small text file”, which is data (usually encrypted) stored on the user’s local terminal by some websites in order to […]