Question :How do you prevent the Creation of a Session in a JSP Page and
why? (JSP)
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.
The page directive is used to prevent a JSP page from automatically
creating a session:
<%@ page session="false">
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Saturday, March 14, 2009
How do you prevent the Creation of a Session in a JSP Page and
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment