Is it better to use HttpSession or HTML rewriting on high traffic pages?
Dont multiple simultaneous sessions require a lot of server memory? I am
just wondering what would you suggest as the best option for sessions any of
the above or together with storing info in the database and than looking it
up by session ID. Thank you for your time.
Sincerely,
Oleg
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of R.B. Gurung
Sent: Friday, May 28, 1999 4:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Session maintaining
Hi,
You can do so by
HttpSession session = request.getSession(true) - ( true to create a session
if not already there)
HttpSession session = request.getSession() - get the existing session
after this use
session.setAttribute("one","value") ;
to set value of object "one" which can be obtained in the other pages /
within the page by
value_returned = session.getAttribute("one");
it works fine.
gurung
----- Original Message -----
From: N Hari Babu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 1:12 PM
Subject: Session maintaining
> Hi All,
> Using JSP how can i do session maintaing. Pls. help me.
>
> rgds,
> Hari.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets