What does Session and Cookies represent in Ruby on Rails?

What does Session and Cookies represent in Ruby on Rails?



-Sessions are important as they provide with useful information regarding the customer and different server side information.

-Cookies on the other hand use the store information that are stored on the client side platform or related to the browser.

-Sessions are required to store the information regarding the user’s information and the actions that he will take only.

-The session is given as: session [:user] = “Rohit”.

-The session remains till the browser till the information is getting stored and the browser is getting closed by the user for the same.
Post your comment