- From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
- Date: Wed, 04 Nov 1998 10:34:55 +0100
- To: Tadashi NAKANO <tnakano@ise.eng.osaka-u.ac.jp>
- cc: www-jigsaw@w3.org
I tried this: HttpSetCookie cookie = new HttpSetCookie("THEVALUE", "42"); cookie.setMaxAge(31536000); HttpSetCookie cookies[] = { cookie }; reply.setSetCookie(new HttpSetCookieList(cookies)); And it works fine, the client (Netscape 4.07) saved the cookie on the disk. Regards, Benoit. Tadashi NAKANO writes: > > I have a problem. Please help me. > > I could give Cookie to a client with setSetCookie() method. > But the expiry was until the end of the session when client got the > cookie and saw the detail. > So the cookie seemed to be not saved in local disk. > I wanna save it in local disk. > I think I can chage the expiry with using setMaxAge() method. > And I tried that.But not change, it was still the end of the session. > > I'm sorry, If that is not the question of here. > > -- > Tadashi Nakano > > - Benoît Mahé ------------------------------------------------------- World Wide Web Consortium (W3C) Architecture domain - Jigsaw Team http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89 ---------------------------------------------------------------------
Received on Wednesday, 4 November 1998 04:35:13 UTC