When should we opt to use a session and when should we use oookies in an application. What are the main differences between the two. And if cookies are turned off in a browser, do we need to call response.encodeUrl() explicitly or is it automatically taken care of ?
Hi, Holding state in sessions can be more performant than cookies, especially if you have large amounts of data, and is easier to pass around to other parts of your app. Cookies can only hold so much info. Consider holding sate info in the request object as well if only the next request needs it.