Hi Chris.

Your tip is quite helpful.
Thanks & Regards

 Shuwaz Abbasi.
 Software Developer.
 Ph # 5584677-8.
 www.visualsoft-inc.com.


----- Original Message -----
From: "Chris Pratt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 8:27 PM
Subject: Re: Cookie problem


> Immediately is a funny thing in web time.  It can mean anything from right
> now to the next time I close all my browser instances.  What I usually do
if
> it's really important to know is put a marker in the user record.
Something
> like PersistentLogin=true.  Then when the user logs out, set the Max Age
to
> 0 and also set PersistentLogin to false.  When the user comes back to the
> site, both the cookie must be present and PersistentLogin must be true to
> pass by the login screen.
>     (*Chris*)
>
> ----- Original Message -----
> From: "Shuja Nawaz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 28, 2000 12:28 AM
> Subject: [JSP-INTEREST] Cookie problem
>
>
> > Hi,
> >
> > I have developed a website. The user has an option to set cookies to
> > remember his  username and password
> > by checking a checkbox (I'm setting the cookie to expire after a month).
> > Now if the user unchecks the checkbox how should I expire the cookies
> > immediately.
> > I've tried setMaxAge(0)  but it does't work.
> >
> > I shall be thankful if you can send me an example how to resolve my
> problem.
> >
> > Thank you in anticipation.
> >
> >
> >
> > Thanks & Regards
> > Shuwaz Abbasi.
> > Software Developer.
> > Ph # 5584677-8.
> > www.visualsoft-inc.com.
> >
> >
>
===========================================================================
> > 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://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!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
===========================================================================
> 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://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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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