2. Handling HTTP Requests with Gin – Session Management

2. Handling HTTP Requests with Gin - Session Management

2.10 Session 2.10.1 Definition of Session     A Session is a series of requests and operations processed by the program during the interaction between the user and the server, where the program maintains state information about user activities. For example, this includes the user’s identity, preferences, and current session data. Typically, a session begins … Read more

2. Handling HTTP Requests with Gin – HTML Templates

2.6 HTML Templates Go language uses the built-in <span>html/template</span> package to render HTML templates, providing safe template parsing and execution features to prevent cross-site scripting attacks (XSS). Templates can be created using <span>template.New()</span> and then read and parsed using <span>ParseFiles()</span>. Gin uses the <span>gin.Context</span> object’s <span>HTML()</span> method to combine HTML templates with data, rendering and … Read more