Which of the following statements are true?
Choose at least one answer. a. Once an ServletRequest attribute has been set, it is visible to all subsequent requests
b. Data in a HttpSession attribute will not be available if the web server restarts
c. Data in the ServletContext can be shared by any
servlet of the same web application.
d. The getParameter method of HttpSession will retrieve a session attribute
I answered both b and c but the correct one is only c. b is incorrect for following reason:Although session attribute data may dissapear if
Tomcat is restarted, this is not guaranteed behaviour and some web servers may store session data in a database.
Which web server stores the session attribute even after restarted? And whats the point in retaining the session data once the session is invalidated?