Tagged articles
cookies
86 articles · Page 1 of 1
This guide explains how to use PHP's setcookie function to create and manage browser cookies, covering syntax, each parameter's purpose, practical code examples, and security considerations for effective backend development.
Securitycookiessetcookie
0 likes · 4 min read

This article explains the fundamentals of HTTP and HTTPS, compares their features, details how internet messages travel through DNS, routers, IP and MAC addresses, describes request and response structures, ports, encryption methods, cookies versus sessions, and provides a comprehensive summary of their differences.
HTTPHTTPSNetworking
0 likes · 20 min read

This article explains the fundamentals of HTTP and HTTPS, comparing their features, security mechanisms, ports, and performance, and details how internet messages travel through DNS, routers, IP and MAC addresses, as well as the roles, characteristics, and differences of cookies and sessions.
HTTPSSessionsWeb Protocols
0 likes · 17 min read

This article explains how PHP's setcookie function works, describes each parameter, and provides several practical code examples for setting cookies with different lifetimes, scopes, and security options, helping developers manage client‑side data effectively.
BackendPHPSecurity
0 likes · 5 min read

This article explains the fundamental differences between HTTP and HTTPS, how internet messages travel through DNS and routers, the roles of IP and MAC addresses, port conventions, request/response structures, encryption methods, digital certificates, and compares cookies with server‑side sessions for state management.
HTTPHTTPSNetworking
0 likes · 16 min read

This article explains the fundamentals of HTTP and HTTPS, detailing how web requests travel across the internet, the roles of IP and MAC addresses, port numbers, request and response structures, encryption methods, digital certificates, and the differences between cookies and sessions.
HTTPHTTPSSessions
0 likes · 18 min read

This article explains the fundamental differences between HTTP and HTTPS, how internet messages travel through DNS and routers, the roles of ports, request and response structures, encryption methods, digital certificates, and compares cookies with sessions for state management.
HTTPHTTPSNetworking
0 likes · 18 min read

This article outlines essential Python web‑crawling techniques—including basic GET/POST requests, proxy usage, cookie management, header spoofing, captcha handling, gzip compression, and multithreaded fetching—to help developers build efficient and robust crawlers.
GZIPMultithreadingPython
0 likes · 4 min read

This article outlines essential Python web‑scraping techniques, covering basic GET/POST requests, proxy usage, cookie handling, header manipulation to mimic browsers, simple captcha solutions, gzip compression handling, and multithreaded crawling with a thread‑pool template, providing practical code examples for each step.
GZIPMultithreadingProxy
0 likes · 5 min read

This article explains PHP's setcookie function, detailing its syntax, parameter meanings, and providing several practical code examples for creating cookies with different lifetimes, paths, domains, and security flags, while also noting how to retrieve cookies using the $_COOKIE superglobal.
BackendPHPSecurity
0 likes · 4 min read

This article explains the PHP setcookie function, detailing its syntax, parameters such as name, value, expiration, path, domain, secure, and httponly, and provides multiple practical code examples for setting cookies with various scopes, lifetimes, and security options.
cookiessetcookieweb development
0 likes · 4 min read

This article explains the PHP setcookie function, detailing its syntax, parameter meanings, and provides multiple practical examples for creating cookies with various lifetimes, paths, domains, and security flags, helping developers effectively manage client-side data in web applications.
Web Securitycookiessetcookie
0 likes · 5 min read

Understanding the SameSite attribute lets developers control cookie transmission across sites, balancing security and usability by choosing Strict for maximum protection, Lax for a user‑friendly compromise, or None (with Secure) for cross‑site scenarios, with practical code examples and usage guidelines.
HTTPNode.jsSameSite
0 likes · 6 min read

The article introduces the Python mechanize library, explains its capabilities for automating web interactions such as form submission, link navigation, cookie management, and redirects, provides basic usage examples, detailed sample code for various testing scenarios, and notes its limitations compared to Selenium.
HTTPMechanizePython
0 likes · 8 min read

This article explains how to use PHP's setcookie function to create and customize browser cookies, covering its syntax, parameter meanings, and practical examples such as setting expiration, path, domain, secure and HttpOnly flags.
PHPbackend developmentcookies
0 likes · 4 min read

This article explains how to obtain cookies from an initial HTTP response using Python's requests library, reuse them in subsequent requests, and handle related security considerations such as CSRF tokens and robots.txt compliance, providing a complete code example and step‑by‑step guidance.
HTTPPythoncookies
0 likes · 5 min read

This article explains the PHP setcookie function, detailing its syntax, parameters such as name, value, expiration, path, domain, secure, and httponly, and provides multiple practical examples for setting cookies with different lifetimes and scopes, while also noting how to read them via $_COOKIE.
Securitycookiessetcookie
0 likes · 4 min read

This article presents a concise guide to Python web scraping, covering eight practical techniques—including basic GET/POST requests, proxy usage, cookie management, header spoofing, page parsing, captcha handling, gzip compression, and multithreaded crawling—each illustrated with clear code examples.
GZIPMultithreadingProxy
0 likes · 8 min read

This article explains several Python techniques for extracting browser cookies—including Selenium automation, direct HTTP requests, driver‑based retrieval, and HAR file parsing—providing clear code examples and guidance on when to use each method.
Pythonbrowser automationcookies
0 likes · 4 min read

This article explains how PHP sessions and cookies work together to manage user data, improve authentication, shopping carts, and personalization, providing code examples and best practices for secure, seamless web application development.
AuthenticationPHPPersonalization
0 likes · 7 min read


JavaEdgeAug 20, 2023 · Information Security
This article compares storing authentication tokens in cookies versus the Authorization header, outlining each method's implementation, advantages, drawbacks, security implications such as XSS and CSRF risks, cross‑domain considerations, and compliance with authentication standards.
AuthenticationAuthorization HeaderToken Storage
0 likes · 5 min read

This article provides a comprehensive overview of authentication and authorization concepts, explains the roles of credentials, compares cookies and sessions, discusses session scaling strategies, introduces token‑based authentication and JWT structure, and highlights security considerations and common encryption algorithms.
JWTSessionsauthorization
0 likes · 32 min read

This article explains the concepts, formats, common problems, and testing applications of cookies, sessions, and tokens, helping readers grasp how these mechanisms work together to manage authentication and state in web applications.
SessionWeb Authenticationbackend development
0 likes · 7 min read

This article presents a comprehensive guide to Python web scraping, covering basic GET and POST requests with urllib2, using proxy IPs, managing cookies, disguising as a browser via custom headers, handling gzip-compressed responses, and accelerating crawls with a simple multithreaded worker pool.
GZIPMultithreadingProxy
0 likes · 8 min read

This article explains why HTTP is a stateless protocol, introduces authentication and authorization concepts, and compares cookies, sessions, and token-based mechanisms such as JWT, detailing their characteristics, workflows, and security considerations for modern web applications.
HTTPJWTSession
0 likes · 14 min read

This article explains what cookies are, how they are represented and transmitted in HTTP, their lifecycle, common attributes, and demonstrates practical usage with Java's Cookie API, JSP pages, and servlet code to achieve automatic login and session management.
HTTPJSPJava
0 likes · 11 min read

This article explains the Linux FS‑Cache subsystem, detailing how it creates local disk caches called cookies, the structures and workflows of volume, data‑file, and cache cookies, and the mechanisms for allocation, hashing, state‑machine transitions, and cleanup.
CachingFS-CacheFilesystem
0 likes · 11 min read

This article explains how to simulate user HTTP requests in automated testing by sending GET/POST requests with Java, storing and extracting cookies from the application’s cookie store, and returning them as JSON, accompanied by a complete code example.
Automation TestingBackendHTTP
0 likes · 4 min read

The article explains how third‑party cookies enable cross‑site tracking, why browsers are deprecating them, introduces the SameParty attribute as a partial mitigation, and details Chrome's CHIPS proposal with partitioned cookies that isolate cookie storage per top‑level site to protect user privacy.
CHIPSSamePartybrowser security
0 likes · 6 min read

This article explains the fundamentals of cross‑origin restrictions, cookies, and same‑origin policy for frontend developers, demonstrates common CORS errors with sample code, and presents practical solutions—including iframe/postMessage, JSONP, WebSocket, and CORS configurations on servers such as Node.js and Nginx—to enable secure and reliable cross‑domain communication.
CORSCross-OriginJSONP
0 likes · 21 min read

This article explores HTTP cookies in depth, covering their definition, attributes, security settings, tracking mechanisms, third‑party usage, front‑end management practices, emerging standards like SameSite and SameParty, and future trends such as Chrome’s privacy sandbox and the Cookie Store API.
Web Securitycookiesfrontend
0 likes · 26 min read

Even when you use a browser’s incognito or private mode, your search queries, visited sites, and personal data can still be captured by browsers, cookies, your employer, ISP, and even input methods, making true online anonymity virtually impossible.
browser trackingcookiesdata leakage
0 likes · 4 min read

This article explains why HTTP is a stateless protocol and how authentication and authorization are achieved using cookies, sessions, and token-based mechanisms such as JWT, detailing their characteristics, workflows, and security considerations for modern web applications.
HTTPJWTSession
0 likes · 13 min read

This article explains the evolution from basic web cookies to session management, explores domain sharing, details cookie‑session architecture, introduces single sign‑on methods, and compares the traditional session approach with JWT token authentication, highlighting their advantages, limitations, and implementation considerations.
BackendJWTSSO
0 likes · 16 min read

This article explains the fundamentals and advanced aspects of cookies and sessions, covering their definitions, use cases, key differences, handling when cookies are disabled, session management in distributed systems, same‑origin policy, cross‑origin requests, and security considerations for interview preparation.
HTTPSecuritySessions
0 likes · 9 min read

This article explains an eight‑step JWT‑based user authentication flow, covering secure credential transmission, database verification, token creation, HttpOnly cookie handling, request validation, payload decoding, session versus JWT comparison, and cross‑domain single sign‑on configuration.
AuthenticationJWTcookies
0 likes · 5 min read

This guide explains how to programmatically log into a website using Python's urllib2 and cookielib modules, covering cookie handling, captcha retrieval, form data construction, request headers, and posting credentials to access protected pages.
CAPTCHALogin Automationcookies
0 likes · 5 min read

This article provides a comprehensive Python web‑scraping guide covering basic GET/POST requests with urllib2, proxy handling, cookie management, header manipulation to mimic browsers, gzip compression handling, regular‑expression and library parsing, simple captcha strategies, and a multithreaded thread‑pool example.
GZIPHeader SpoofingMultithreading
0 likes · 8 min read

This tutorial explains how to analyze the Ant Short‑Term Rental website's anti‑scraping mechanisms, extract the required Cookie and User‑Agent headers, and use Python's urllib2 and BeautifulSoup to reliably crawl rental listings, save the data to CSV, and optionally extend the scraper with Selenium.
BeautifulSoupcookiesdata-extraction
0 likes · 12 min read

The article demonstrates how to configure API endpoints and use Java's Apache HttpClient to retrieve authentication cookies and perform subsequent requests, providing a full code example for beginners in interface automation testing.
API testingHttpClientJava
0 likes · 5 min read

This article provides a comprehensive guide to Python web scraping, covering basic GET/POST requests, proxy usage, cookie management, browser header spoofing, gzip compression handling, and multithreaded crawling to improve efficiency and avoid common obstacles.
GZIPMultithreadingProxy
0 likes · 4 min read

This article explains how Laravel encrypts and signs cookies to prevent tampering, shows multiple ways to set and retrieve cookie values, and provides detailed instructions and code examples for uploading, validating, and storing files using the framework's request and response utilities.
BackendFile UploadLaravel
0 likes · 5 min read


21CTODec 25, 2020 · Information Security
GitHub announced the removal of unnecessary cookies, reflecting GDPR-driven privacy shifts and showing how modern web platforms can reduce data collection while still tracking essential performance metrics without third‑party trackers.
GDPRGitHubWeb Security
0 likes · 5 min read

Learn how to use Python’s built-in urllib library for web requests, handling GET/POST, adding headers, managing proxies, processing cookies, handling errors, parsing URLs, and respecting robots.txt, with clear code examples and a practical case of scraping a novel site.
HTTP requestsProxyPython
0 likes · 12 min read

This article explores what “state” means in the HTTP protocol, clarifies the concepts of statelessness and connection‑lessness, demonstrates their impact through a simulated shopping‑cart scenario, and explains how cookies and sessions introduce state to enable practical web interactions.
HTTPSessionStateless
0 likes · 14 min read

Learn how to efficiently build Python web scrapers by mastering basic GET and POST requests, configuring proxy IPs, handling cookies, spoofing browser headers, enabling gzip compression, and leveraging multithreaded concurrency to accelerate data extraction.
Pythoncookiesweb scraping
0 likes · 4 min read

This article explains Chrome 80+ default blocking of third‑party cookies, describes SameSite attribute options, and presents four practical solutions—including a Node.js proxy that enables cookie sharing across front‑end, proxy, and back‑end services—complete with implementation code and deployment guidance.
NodeProxycookies
0 likes · 10 min read

This article explains the fundamentals of cookies and sessions, provides a detailed analysis of the koa-session source code, demonstrates how to configure and use koa-session with in‑memory, Redis, and MySQL stores, and summarizes security considerations and performance trade‑offs.
BackendKoaSession
0 likes · 13 min read

This guide shows how to protect plaintext passwords in a Vue login flow by using RSA asymmetric encryption with the JSEncrypt library, generating key pairs, creating utility functions, and storing encrypted credentials in cookies while providing decryption on retrieval.
JSEncryptJavaScriptRSA
0 likes · 5 min read

This guide demonstrates how to add a remember-password feature to a Vue login page by installing the js-cookie package, creating utility functions for token handling, storing encrypted credentials and a remember-me flag in cookies when selected, and retrieving them on page load to pre-fill the form.
Vuecookiesfrontend
0 likes · 5 min read

Although HTTP is described as a stateless, connectionless protocol, this article dissects what “state” truly refers to, explains why the protocol lacks memory of client interactions, and demonstrates how mechanisms like cookies, sessions, and server‑side caching introduce stateful behavior to enable features such as login persistence and shopping carts.
HTTPSessionStateless
0 likes · 16 min read

This article explains how Laravel routes and controllers can return various HTTP responses—including plain strings, JSON arrays, custom Response objects with headers, cookies, redirects, view rendering, JSONP, and file downloads—while showing the corresponding PHP code for each technique.
HTTP responseJSONLaravel
0 likes · 5 min read

This article explores what “state” means in the HTTP protocol, clarifying the concepts of statelessness, the role of cookies and sessions, and how they address the limitations of pure HTTP through practical examples and security considerations.
HTTPSessionStateless
0 likes · 14 min read

This article explains how cookies and sessions compensate for HTTP's stateless nature, details their creation, types, and limitations, compares them with JSON Web Tokens, and provides guidance on choosing the appropriate authentication method for different application scales and security requirements.
AuthenticationJWTSession
0 likes · 16 min read

This article explains the distinction and relationship between cookies and sessions, describes how sessions work in web applications, and compares four approaches—client‑side storage, session replication, Nginx session affinity, and Redis‑based session storage—for achieving consistent distributed session management.
Sessionsbackend-developmentcookies
0 likes · 10 min read

The article traces the history of web session handling, explains the drawbacks of server‑side session storage, introduces token‑based authentication with HMAC‑signed JWTs, and highlights the security, scalability and cross‑domain benefits of stateless token mechanisms over traditional cookies and sessions.
SessionStatelesscookies
0 likes · 13 min read

This article explores the true meaning of HTTP’s stateless nature, clarifies common misconceptions, examines how cookies and sessions add state, and demonstrates through a simulated shopping scenario why additional mechanisms are needed to maintain user context across requests.
HTTPSessionStateless
0 likes · 15 min read

This guide explains four practical methods—using a known cookie, simulating login with urllib or requests, maintaining a session, and employing a headless Selenium browser—to programmatically retrieve pages that require user authentication, complete with step‑by‑step instructions and code examples.
HTTPcookiesselenium
0 likes · 14 min read

This article demonstrates how to handle HTTP headers and cookies within the FunTester automated testing framework, providing step-by-step explanations, video references, and a complete Java code example that shows registering users, developer login, and request execution using Apache HttpClient.
HTTPHeadersJava
0 likes · 6 min read


政采云技术Jan 5, 2020 · Information Security
This article explains the fundamentals of Single Sign‑On (SSO), covering same‑origin policy, cookies and sessions, browser login flows, challenges of multi‑system authentication across subdomains and different domains, front‑end cross‑origin techniques, and an overview of the CAS protocol.
AuthenticationCASSSO
0 likes · 9 min read

This guide explains how to inject the Illuminate\Http\Request into Laravel controllers, retrieve route parameters, access request paths, methods, query strings, filter input, work with old input, manage cookies, handle uploaded files, and configure trusted proxies for accurate HTTPS detection.
File UploadHTTP requestInput Handling
0 likes · 15 min read

This guide explains how Laravel handles HTTP responses, covering simple string and array returns, full Response objects, adding headers and cookies, cache‑control middleware, various redirect techniques, view and JSON responses, file downloads, stream downloads, and custom response macros.
BackendHeadersLaravel
0 likes · 12 min read

This guide introduces Python’s Requests library, covering installation, GET and POST requests, handling headers, response codes, cookies, redirects, timeouts, and proxy settings, with practical code examples to help developers perform reliable HTTP operations and avoid common pitfalls in web scraping.
APIHeadersPython
0 likes · 6 min read

This article explains the concept, types, lifecycle, and security considerations of HTTP cookies, illustrates how browsers store and send cookies, describes the cookie‑jar model, domain handling, and related CORS mechanisms, and provides practical JavaScript examples.
CORSClient-side StateHTTP
0 likes · 11 min read

This article explains the stateless nature of HTTP and how cookies, server‑side sessions, and token‑based authentication work together to maintain user state across requests, including their storage limits, lifecycle, and practical implementation steps.
AuthenticationBackendSession
0 likes · 8 min read

This guide explains practical techniques such as faking User‑Agent headers, rotating cookies, adding random delays, and using proxy pools to prevent IP bans while crawling large amounts of data from websites with anti‑scraping defenses.
User-Agentanti-scrapingcookies
0 likes · 4 min read

This guide explains how to solve Selenium‑Java cookie expiration by fetching the latest user token from a MySQL database and inserting only the essential MyName and User_token_Session cookies before refreshing the browser session.
automationcookiesdatabase
0 likes · 6 min read

This article explains what HTTP cookies are, their basic operation via Set‑Cookie and Cookie headers, the standard cookie format and attributes, how to view them in browsers, and how cookies enable seamless cross‑domain redirects, illustrated with PHP code examples.
HTTPSecuritySession Management
0 likes · 8 min read

This article explains what cookies and sessions are, their types and attributes, demonstrates how they control language preferences on a website, and provides practical iOS examples using NSHTTPCookie, AFNetworking, and NSURLSession to send and manage cookies in network requests.
AFNetworkingNSURLSessionSession
0 likes · 10 min read

This guide walks through eight practical Python urllib2 techniques for web crawling, covering basic GET/POST requests, proxy usage, cookie management, header spoofing, page parsing with regex and BeautifulSoup, captcha handling, gzip compression, and multithreaded fetching with a simple thread pool.
GZIPMultithreadingProxy
0 likes · 8 min read

This article provides a comprehensive Python web scraping guide covering basic page retrieval with GET and POST, proxy usage, cookie handling, header spoofing, page parsing techniques, captcha processing, gzip compression, and multithreaded crawling, complete with code snippets for each step.
Proxycookiesurllib2
0 likes · 7 min read

This guide shares practical testing shortcuts—including how to fully clear Chrome cache, use Navicat for reusable SQL queries, install JSON Viewer and EditThisCookie extensions, and other handy tricks—to boost overall testing efficiency and reduce manual effort.
Browser CacheChrome extensionsMySQL
0 likes · 4 min read


21CTOApr 26, 2018 · Information Security
This article explains the fundamentals of web tracking, distinguishing first- and third-party trackers, detailing technical mechanisms such as cookies, browser fingerprinting, and web beacons, and offers practical tools like Lightbeam to detect and visualize trackers, highlighting privacy implications for users and operators.
Browser Fingerprintingcookiesprivacy
0 likes · 8 min read

This guide walks through practical Python web‑scraping techniques using urllib2, covering basic GET/POST requests, proxy handling, cookie management, header spoofing, page parsing with regex/lxml/BeautifulSoup, simple captcha solutions, gzip compression, and a multithreaded crawling template.
Proxycookiesurllib2
0 likes · 8 min read

This tutorial walks you through setting up a Node.js environment, installing Koa, and progressively building a web application by covering basic HTTP services, context handling, response types, routing, middleware, error handling, cookies, form processing, and file uploads with clear code examples.
File UploadKoaNode.js
0 likes · 19 min read


ITPUBOct 26, 2017 · Backend Development
This guide walks through using Python's urllib2 library for web crawling, covering basic GET/POST requests, handling proxy IPs, managing cookies, spoofing browser headers, processing gzip-compressed responses, and implementing multithreaded fetching with a simple thread‑pool template.
GZIPMultithreadingProxy
0 likes · 7 min read


ITPUBMay 18, 2017 · Operations
This guide explains how to use the curl command-line tool to fetch web pages, display or combine HTTP headers, save output to files, follow redirects, customize User-Agent and headers, manage cookies, and perform POST and GET requests with data, including examples for multiple file downloads.
File DownloadHTTPHeaders
0 likes · 9 min read

This article explains how Python's urllib and urllib2 modules differ and demonstrates practical techniques for sending HTTP requests, encoding query strings, setting custom headers, handling JSON payloads, managing cookies, and configuring proxies using Request objects and build_opener handlers.
BackendHTTPHeaders
0 likes · 4 min read

This article explains what cookies are, how they work, where they are stored, their common use cases and drawbacks, and provides a comprehensive set of test cases for effectively testing cookie behavior in web applications.
Session Managementcookiestest-cases
0 likes · 10 min read

This article explains what HTTP cookies are, their historical origin, how they are created and managed via Set-Cookie headers, the meaning of options like expires, domain, path, and secure, as well as JavaScript handling, subcookies, HTTP‑Only flags, and common limitations.
HTTPJavaScriptSession
0 likes · 17 min read

The article examines how HTTP header and cookie parameters can serve as SQL injection vectors, evaluates the coverage of commercial and open‑source web vulnerability scanners, demonstrates manual testing techniques, and recommends tools such as sqlmap for comprehensive security assessments.
HTTP headersSQL injectionSQLMap
0 likes · 13 min read


21CTOApr 28, 2016 · Frontend Development
An in‑depth guide to the evolution of browser storage—covering cookies, Web Storage (localStorage/sessionStorage), IndexedDB, WebSQL, and related APIs—explains their concepts, usage, compatibility, and provides practical code examples for reading, writing, and managing data across modern browsers.
IndexedDBWebSQLbrowser storage
0 likes · 15 min read

This article provides a comprehensive overview of common browser storage technologies—including Cookies, Web Storage (localStorage and sessionStorage), IndexedDB, WebSQL, Application Cache, and Service Workers—explaining their purposes, compatibility, and offering practical code examples for each.
IndexedDBWebSQLbrowser storage
0 likes · 15 min read


DevOpsApr 9, 2016 · Fundamentals
In this whimsical interview, the aging Internet Explorer, Firefox, and Chrome discuss their rivalry, the evolution of browsers, how they fetch web pages via HTTP requests and responses, status codes, cookies, and the challenges of modern web technologies, offering a clear overview of web fundamentals.
BrowsersHTTPcookies
0 likes · 11 min read

This article examines how web vulnerability scanners handle non‑traditional input vectors such as HTTP headers and cookies, demonstrates manual exploitation techniques for header‑based SQL injection, compares scanner coverage and accuracy, and offers practical guidance for developers and penetration testers.
HTTP headersSQL injectionSQLMap
0 likes · 14 min read

With third‑party cookies dying, Facebook, Google, and Apple are replacing them by leveraging their own login ecosystems—Facebook’s SSO and Atlas platform, Google’s Ad ID across Android and services, and Apple’s IDFA tied to Apple IDs—while third‑party data firms supplement detail, and users can still disable most tracking.
Tech Companiescookiesdata privacy
0 likes · 7 min read
