How to read a HttpOnly cookie using JavaScript?
Explain that HttpOnly cookies cannot be accessed directly via JavaScript for security reasons. Mention their primary purpose for server-side use only, ensuring secure data handling. If needed, describe how the server can read and process HttpOnly cookies for authentication or other tasks.