----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jon Stevens
Sent: Tuesday, June 20, 2000 2:24 PM
To: Java Apache Users
Subject: Re: removing cookies with setMaxAge(0) no go

on 6/20/2000 9:30 AM, "Otis Gospodnetic" <[EMAIL PROTECTED]> wrote:

> Am I doing something wrong here?
> Is there a better/an alternative way of removing cookies from Java?
> I know that there is a newer version of JServ available, but I haven't
seen
> this issue mentioned in the ChangeLog.

this is how we do it in turbine...

                String[] names = data.getSession().getValueNames();
                if (names != null)
                {
                    for (int i=0; i< names.length; i++)
                    {
                        data.getSession().removeValue(names[i]);
                    }
                }
------------

But is there a way to do it with just a regular JServ? We are not using
Turbine.

According to the specs, setMaxAge(0) should expire the cookies, remove them,
no?
Could this be a JServ bug? WebMacro maybe?

Thanks,

Otis



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to