Re: WOCookie after browser restart?
site_archiver@lists.apple.com Delivered-To: webobjects-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1537202862; bh=FM9nKaboPMuGLFsfzySS/x6MZ/+8zXnNdS4Vy+RD0PQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject; b=LjHTDxi+KGNNA1XMLGTeORped/3CACcMAXPOkamzLyvqftcPrxaVtv6gYOCwbpFm4Gr+8bZZyMueBBvG2V7TWNaMTgH2w++/kPZXGEhXvde72bABqmEqqiYuJIji/z+mt6gd/Al93wMb7qJzC6/nAhE4iISrHti6t2h9CeQHZDAsf1+JSteD6TnhplmZH49UNOPgEqRmIf/NyRreQix7p4iGnCSKH6afrZ+xV5bknIBj97QgY08+uGCzx+kvDJBPyBbQAXAggndn+IlePV9gkt1FWsJRMshA1Cuewbld1tVifIjH8aMfi66/6SKTQlvbZSN54RS4mhk04X+8oLklMw== Jesse, I see that there are overloaded constructors. maybe it doesn’t like being set once it is created! WOCookie cookie = new WOCookie(“USER_ID", userIdentifierCode, "/", null, -1, null, true); (remove the setExpires) public WOCookie(final String name, final String value, final String path, final String domain, final NSTimestamp expires, final boolean isSecure) { this(name, value, path, domain, expires, isSecure, false); } just curious if setting the expires in the constructor does anything different!
On Sep 17, 2018, at 11:44 AM, Jesse Tayler <jtayler@oeinc.com> wrote:
Hi All
I’ve tried fussing around with various arguments but for whatever reason my WOCookie always dies when the browser restarts?
WOCookie cookie = new WOCookie(“USER_ID", userIdentifierCode, "/", null, -1, true); cookie.setExpires(null);
I’ve tried various expires and timeout combinations can anyone say what it is that I’m doing wrong ?
Seems DISTANT FUTURE is a common need, so I’m confused!
thanks
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
This email sent to tedpet5@yahoo.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/site_archiver%40lists... This email sent to site_archiver@lists.apple.com
participants (1)
-
Theodore Petrosky