1.

How Do You Prevent The Creation Of A Session In A Jsp Page And Why? What Is The Difference Between Include Directive & Jsp:include Action?

Answer»

By default, a JSP PAGE will automatically create a session for the request if ONE does not exist.
However, sessions consume resources and if it is not necessary to MAINTAIN a session, one should not be created. For example, a marketing CAMPAIGN MAY suggest the reader visit a web page for more information. If it is anticipated that a lot of traffic will hit that page, you may want to optimize the load on the machine by not creating useless sessions.

By default, a JSP page will automatically create a session for the request if one does not exist.
However, sessions consume resources and if it is not necessary to maintain a session, one should not be created. For example, a marketing campaign may suggest the reader visit a web page for more information. If it is anticipated that a lot of traffic will hit that page, you may want to optimize the load on the machine by not creating useless sessions.



Discussion

No Comment Found