O'Reilly logo

Learn Rails 5.2: Accelerated Web Development with Ruby on Rails by Stefan Wintermeyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Stefan Wintermeyer 2018
Stefan WintermeyerLearn Rails 5.2https://doi.org/10.1007/978-1-4842-3489-1_8

8. Cookies and Sessions

Stefan Wintermeyer
(1)
Bochum, Germany
 
In this chapter, I’ll talk about cookies and sessions.

Cookies

With a cookie, you can store information on the web browser’s system in the form of strings as key-value pairs that the web server has previously sent to this browser. The information is later sent from the browser to the server in the HTTP header. A cookie (if configured accordingly) is not deleted from the browser system by restarting the browser or by restarting the system. Of course, the browser’s human user can manually delete the cookie.
 A browser does not have to accept cookies, and it does not have to save them either. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required