Managing Cookies in JavaScript: Creation, Retrieval, and Deletion
Browser cookies can be managed directly through the document.cookie API. Below are implementations for creating, reading, and removing cookies, including handling specific cross-domain issues.
Creating a Cookie
The writeCookie function constructs a cookie string with an optional expiration date. Using encodeURIComponent ensures the value is sa ...
Posted on Thu, 25 Jun 2026 16:20:56 +0000 by 8mycsh
FastAPI Parameter Declaration Quick Reference
Query Parameters
from fastapi import Query
username: str = Query(..., title="User name", min_length=5, max_length=30)
Detail
Example
Purpose
Extracts values from the URL query string
URL Pattern
/items?username=alice
Required/Optional
Query(...) required; Query(None) optional
Default
role: str = Query("user")
...
Posted on Wed, 03 Jun 2026 17:04:25 +0000 by duhhh33
Understanding Cookie, Session, and JSP in JavaWeb Applications
1 Session Management Fundamentals
1.1 Session Management Overview
1.1.1 Defining a Session
In web development, a session represents a complete communication cycle between the client and server. The session begins when a user opens a browser and navigates to a website, and terminates when the browser closes or the session expires.
Consider this ...
Posted on Wed, 13 May 2026 09:57:33 +0000 by djremiasz