Multiple choice technology web technology

Which type is preferable to maintain session

  1. cookies because user can turn off it

  2. hidden form field because of its performance is moderate

  3. httpsession because no limit for session data and performance is good

  4. Url rewriting becasue its easy

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

HttpSession is preferable because it stores session data server-side with no size limit, provides good performance, and doesn't depend on client-side settings. Cookies can be disabled by users, hidden form fields have security limitations, and URL rewriting is cumbersome and has security issues.