Here is the servlet API and check out the HttpSession!

http://www.java.sun.com/products/servlet/2.2/javadoc/index.html

/NJ

>From: prasanna ganesan <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Session Expiry
>Date: Mon, 23 Oct 2000 22:08:11 -0700
>
>You need not use any API to create session object.It is an implicit object
>you can use in JSP.So when u say
>             session.isNew() it checks if the current session is a new one
>or a continuation of the existing one.
>
>Prasanna.G.
>
>
>
>
>On Mon, 23 October 2000, Mutahar Qayum wrote:
>
> >
> > which API can i use for making session object?
> >
> > -----Original Message-----
> > From: prasanna ganesan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 23, 2000 11:10 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Session Expiry
> >
> >
> > Hi
> >   Use session.isNew() to check if in case he has closed the browser
>window
> > and opened again in a new window.If the session.isNew() returns true
>then
> > reset all session variables in ur code.As for the other scenario when he
> > goes to another site by typing the url in the location bar and comes
>back to
> > ur page by clicking the back button U can avoid that scenario by making
>ur
> > page non cacheable by the browser by setting the header in the response
>as
> >                 response.setHeader("Cache-Control","no-cache");
> >
> > This works with Netscape fine.But with IE there is different method u
>need
> > to follow which I don't remember now..
> >
> > Hope this helps
> > Prasanna.G.
> >
> >
> >
> >
> > On Sun, 22 October 2000, vivek tiwari wrote:
> >
> > >
> > > I am sorry but you didn't understand my question .
> > > In the middle of the navigation the user abruptly
> > > closes the window or goes to another site by typing
> > > the URL  in the location bar .
> > >
> > > How can I call session.invalidate in these
> > > circumstances ?
> > >
> > > Vivek
> > >
> > >
> > >
> > > --- Tripat Singh <[EMAIL PROTECTED]> wrote:
> > > > use HttpSession.invalidate()
> > > >
> > > > Tripat Singh Kharbanda
> > > > Programmer
> > > > Times Internet Limited.
> > > > ----- Original Message -----
> > > > From: "vivek tiwari" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, October 23, 2000 9:29 AM
> > > > Subject: Session Expiry
> > > >
> > > >
> > > > > Hi All ,
> > > > >
> > > > > I want to remove the session varibles when a user
> > > > > closes the browser or goes to another web page .
> > > > Can
> > > > > this be done ?
> > > > >
> > > > > Presently what is happenning is that when the user
> > > > > closes his browser and opens a fresh browser
> > > > instance
> > > > > and goes to my page the session varibles still
> > > > show up
> > > > > . How to avoid this ?
> > > > >
> > > > > Thanks
> > > > > Vivek
> > > > >
> > > > >
> > > > > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Messenger - Talk while you surf!  It's
> > > > FREE.
> > > > > http://im.yahoo.com/
> > > > >
> > > > >
> > > >
> > >
> >
>===========================================================================
> > > > > 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
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Messenger - Talk while you surf!  It's FREE.
> > > http://im.yahoo.com/
> > >
> > >
> >
>===========================================================================
> > > 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
> > > ____________________________________________________________
> > > Get your FREE personal .com domain name and
> > > NAMEzero Personal Portal at: http://www.namezero.com.
> > > For customer service, mailto:[EMAIL PROTECTED].
> >
> >
> > _______________________________________
> > Click here to get your free domain name
> > and personal portal from NAMEzero(TM):
> > http://www.namezero.com
> >
> >
>===========================================================================
> > 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
> > ____________________________________________________________
> > Get your FREE personal .com domain name and
> > NAMEzero Personal Portal at: http://www.namezero.com.
> > For customer service, mailto:[EMAIL PROTECTED].
>
>
>_______________________________________
>Click here to get your free domain name
>and personal portal from NAMEzero(TM):
>http://www.namezero.com
>
>===========================================================================
>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

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
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

Reply via email to