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 […]

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 […]