- Go Web Development Cookbook
- Arpit Aggarwal
- 149字
- 2021-08-27 19:01:20
Introduction
Sometimes, we would like to persist information such as user data at an application level rather than persisting it in a database, which can be easily achieved using sessions and cookies. The difference between the two is that sessions are stored on the server side, whereas cookies are stored on the client side. We may also need to cache static data to avoid unnecessary calls to a database or a web service, and implement error handling while developing a web application. With knowledge of the concepts covered in this chapter, we will be able to implement all these functionalities in a fairly easy way.
In this chapter, we will start with creating an HTTP session, then we will learn how we can manage it using Redis, creating cookies, caching HTTP responses, implementing error handling, and eventually end with implementing login and logout mechanisms in Go.
- 物聯(lián)網(wǎng)短距離無線通信技術(shù)應(yīng)用與開發(fā)
- GPS/GNSS原理與應(yīng)用(第3版)
- Hands-On Industrial Internet of Things
- 網(wǎng)絡(luò)故障現(xiàn)場處理實(shí)踐(第4版)
- VMware NSX網(wǎng)絡(luò)虛擬化入門
- Learning Storm
- 網(wǎng)絡(luò)利他行為研究:積極心理學(xué)的視角
- 5G+區(qū)塊鏈
- 局域網(wǎng)組成實(shí)踐
- 云計(jì)算技術(shù)與標(biāo)準(zhǔn)化
- 物聯(lián)網(wǎng)與智慧農(nóng)業(yè)
- NB-IoT原理和優(yōu)化
- 物聯(lián)網(wǎng)與智慧廣電
- 云計(jì)算、網(wǎng)絡(luò)安全和網(wǎng)絡(luò)盜竊:網(wǎng)絡(luò)世界防盜初學(xué)指南
- Hands-On Full Stack Web Development with Aurelia