tasticeyes
New Member
- Joined
- Sep 2, 2011
- Messages
- 6
Hello everyone
Could the good people of MyBB please point me to some sources (or provide the information directly
) on best practices in the following cases:
1) Authenticating users for a JSP website (running on Tomcat). I've read that including some header in my JSP scripts that performs authentication is not recommended anymore. In fact, I've found that much of the stuff I learnt about JSP back in the day is now "depracated". What is the preferred way of doing this? For example, presenting a form to the user where they enter login details. These login details are validated against records in a database before allowing access to specific areas of the website. Is it better to do this myself, or let the container handle it (if this is indeed even possible)?
2) Slightly related to point (1) above, what is the preferred way of persisting information? Due to the statelessness of HTTP, one would need sessions and/or cookies, etc, correct? What if you want to track the browser session for both logged-in and anonymous users? What are the security implications of this? In other words, what is the correct (and safe) way to propagate state information for viewers (both logged-in and otherwise)? Sessions? Cookies? Sessions + Cookies? Something else?
Thanks a bunch!
Could the good people of MyBB please point me to some sources (or provide the information directly
1) Authenticating users for a JSP website (running on Tomcat). I've read that including some header in my JSP scripts that performs authentication is not recommended anymore. In fact, I've found that much of the stuff I learnt about JSP back in the day is now "depracated". What is the preferred way of doing this? For example, presenting a form to the user where they enter login details. These login details are validated against records in a database before allowing access to specific areas of the website. Is it better to do this myself, or let the container handle it (if this is indeed even possible)?
2) Slightly related to point (1) above, what is the preferred way of persisting information? Due to the statelessness of HTTP, one would need sessions and/or cookies, etc, correct? What if you want to track the browser session for both logged-in and anonymous users? What are the security implications of this? In other words, what is the correct (and safe) way to propagate state information for viewers (both logged-in and otherwise)? Sessions? Cookies? Sessions + Cookies? Something else?
Thanks a bunch!