----------------------------------------------------------------
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!!!
----------------------------------------------------------------
on 6/20/2000 2:58 PM, "Otis Gospodnetic" <[EMAIL PROTECTED]> wrote:
>
> 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.
Ug. I showed you how to do it. It is pretty obvious if you think about it
for a second. You don't need to use Turbine...
> According to the specs, setMaxAge(0) should expire the cookies, remove them,
> no?
> Could this be a JServ bug? WebMacro maybe?
I don't know (or care really). All I know is the above works just fine.
here is some code that hand holds you a bit more...
String[] names = HttpSession.getValueNames();
if (names != null)
{
for (int i=0; i< names.length; i++)
{
HttpSession.removeValue(names[i]);
}
}
of course you will need to replace "HttpSession" with the object of
HttpSession.
-jon
--
--------------------------------------------------------------
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]