I am testing a session object so

I created
p1.jsp with the snippets:

....
<%
HttpSession currSession = request.getSession(true)

currSession.setMaxInactiveInterval(3600);
currSession.setAttribute("user", Name);
currSession.setAttribute("id", ID);

.......

%>

In P2.jsp

<%
.....
currSession.invalidate(); %>
...
%>


However I got errors:

Undefined variable or class name: currSession
currSession.invalidate();

If I change the object name to 'session', then it is ok.

Is session object supposed to last through the session?  Am I missiing
something?  Do I have to use the object name 'session'?

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to