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=oeinc-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=AksgpEq/JNgt2GdB9nAX7yoSEuwrgHKAmaVx6HjXJWM=; b=zE2QLTb0l6FXk7dYxFjfzhPu7EMxzVnon0XdtQqcjSntk8sRnrdeXWUffsIS2UfmpV GqpQHEYuxudl7CeuErDR6uxhgaAmdaBr7+r5nUqDtsUtYwxvp0CwsbU6FKUnrdPNJpEw lHrFuzhUIyG5cRP/4kOB/G0M8u0yWMwLuH/xzn/WDs/cnWKEFDivBMnef7tMYbdMnuWu 4uYsKMuLlqCMm2pUn8Er5G4rCKPG4Ofln6fQENHLB3EO2l/1fMiGZbVSUhdMqZEtAZuF xDUtb0aDnxYuf2TnTuWw8mzHEjHUZCfXrlQaLaS5qgefN7nXKjXJzaaK7kxyVTk8npHI MO+Q== I think I’ve tried everything I could think of — Do you have say, a login cookie that lasts after browser restart? Paste in your initializer and I’ll try it — I read something about setting the setExpires specifically to nil and tried it any number of ways.
On Sep 17, 2018, at 12:47 PM, Theodore Petrosky <tedpet5@yahoo.com> wrote:
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)
-
Jesse Tayler