- 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.
- Application Development with Qt Creator(Second Edition)
- RCNP實(shí)驗(yàn)指南:構(gòu)建高級(jí)的路由互聯(lián)網(wǎng)絡(luò)(BARI)
- Hands-On Industrial Internet of Things
- 計(jì)算機(jī)網(wǎng)絡(luò)安全實(shí)訓(xùn)教程(第二版)
- 面向云平臺(tái)的物聯(lián)網(wǎng)多源異構(gòu)信息融合方法
- 通信簡(jiǎn)史:從信鴿到6G+
- 2018網(wǎng)信發(fā)展報(bào)告
- 雷達(dá)饋線技術(shù)
- 城域網(wǎng)與廣域網(wǎng)(第2版)
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實(shí)踐和未來演進(jìn)
- WordPress Web Application Development
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)指南
- 網(wǎng)絡(luò)設(shè)計(jì)與應(yīng)用(第2版)
- Getting Started with nopCommerce
- AIoT應(yīng)用開發(fā)與實(shí)踐