I was going over session management using the
java API and I came down to two examples
one example is from the Head First
Servlets and
JSP this uses session.isNew
Example is
and the other example i came across is which does not use .isNew method but instead depends on a variable value in the session :
1- I wanted to know which method is better the .isNew one or the other one.
2- Since both the above methods use the java API for server management.. do people still write custom cookies to manage their session ??