Implementing a Shopping Cart Module in Django

Frontend Request Analysis The frontend sends two pieces of data to the backend: the product ID and the quantity. The request is made via POST method. ### Backend View Logic The backend implements the following workflow: 1. Verify user authentication status 2. Extract incoming parameters from the request 3. Validate all required parameters are p ...

Posted on Tue, 22 Sep 2026 16:26:50 +0000 by elgoog

Scrapy Pipeline and Custom Deduplication

Pipeline Formatting If you need more data processing, you can use Scrapy's Items to format the data and then uniformly handle it through Pipelines. You can use a Pipeline to open a database connection when the spider starts and close it after the spider finishes. Usage a. Write the Pipeline class first: class XXXPipeline(object): def proces ...

Posted on Fri, 18 Sep 2026 16:57:10 +0000 by nick2price

Integrating User Authentication into ASP.NET Core with Identity

Personalization is a hallmark of modern web applications. Whether it is saving a shopping cart, remembering reading preferences, or enabling user-ganerated content, most systems need to know who is on the other side of the HTTP request. This article walkss through adding user accounts to an ASP.NET Core application by leveraging the built-in Id ...

Posted on Mon, 07 Sep 2026 16:16:01 +0000 by stow19

Common Web Security Vulnerabilities and Practical Solutions

Viewing Page Source with Restricted Access Some websites may disable the right-click context menu to prevent users from viewing the page source. To view the HTML source code, press Ctrl+U (or Cmd+Option+U on Mac) directly in the browser. Developers often hide sensitive data like flags within HTML comments. <!-- Flag: FLAG{hidden_in_comment} ...

Posted on Mon, 24 Aug 2026 16:05:26 +0000 by Ajdija

Common Techniques for Passing Data Between ASP.NET Pages

Trasnferring data between pages is a fundamental requirement in ASP.NET web development. Several mechanisms exist for this purpose, including QueryString, Session, Cookies, Application state, and Server.Transfer. Each has distinct characteristics suited for different scenarios. 1. QueryString The QueryString method appends key-value pairs to th ...

Posted on Sun, 02 Aug 2026 16:09:29 +0000 by Ghulam Yaseen

Session and Cookie Management in Django 5 Web Development

Understanding Sessions and Cookies in Django 5 HTTP is a stateless protocol, meaning that each request to a server is independent and the server does not retain information about previous interactions. To maintain state between requests, web applications use session management techniques such as cookies and server-side sessions. Cookies Cookies ...

Posted on Thu, 23 Jul 2026 16:23:56 +0000 by ssppllaatt

Understanding Cross-Site Scripting Fundamentals

This article covers foundational web concepts essential for understanding cross-site scripting (XSS) vulnerabilities — focusing on HTTP mechanics, client-side state management, and browser scripting behavior. HTTP Communication Essentials Request Methods GET: Retrieves resources without side effects. Parameters appear in the URL query string a ...

Posted on Sat, 04 Jul 2026 16:38:25 +0000 by madonnazz

Getting Started with Spring MVC, Spring Boot, and Deep Dive into Spring Session

Spring MVC Spring Controller Before diving into Spring controllers, let's look at a high-level view of what a Java web service does: A Spring controller has three key responsibilities: Bean configuration: applying controller annotations and managing beans Loading web resources: essentially serving web pages URL routing configuration: using th ...

Posted on Sun, 28 Jun 2026 17:25:29 +0000 by johnnyblaze1980

Advanced Web Scraping with Python Requests: Session Management, Proxies, and Thread Pools

Session-Based Cookie Handling When scraping user-specific data, traditional requests.get() calls often fail to retrieve the target information. Consider a scenario where you need to access a user's profile page on a social networking site. Without proper cookie management, you'll receive the login page instead of the authenticated profile data. ...

Posted on Fri, 26 Jun 2026 17:27:49 +0000 by Genesis730

Implementing Automatic Login with Cookies in Java Web Applications

Automatic Login Functionality This guide explains how to implement a 10-day automatic login feature using cookies in a Java web application. Login Functionality Implementation First, ensure the basic login functionality is properly implemented: Successful login redirects to the department list page Failed login redirects to an error page ...

Posted on Tue, 23 Jun 2026 17:56:31 +0000 by rnewman