Re: WOCookie after browser restart?

2018-09-19 Thread Paul Hoadley
On 19 Sep 2018, at 23:54, Jesse Tayler wrote: > Maybe we should make note in the wiki pages? > > There was very little about WOCookie, but a simple listing of a line that > works could help I’d imagine… Definitely. Do it. -- Paul Hoadley https://logicsquad.net/ https://www.

Re: WOCookie after browser restart?

2018-09-19 Thread Jesse Tayler
I just used what you threw me and right off it just worked as planned. Basically the test is to log in locally, quite browser and return and if you’re still logged in? Then it worked. Maybe we should make note in the wiki pages? There was very little about WOCookie, but a simple listing of a

Re: WOCookie after browser restart?

2018-09-19 Thread Klaus Berkling
> On Sep 17, 2018, at 2:52 PM, Klaus Berkling wrote: >>> >>> >>> >>> On Sep 17, 2018, at 9:50 AM, Jesse Tayler wrote: >>> >>> I think I’ve tried everything I could think of — >>> >>> Do you have say, a login cookie that

Re: WOCookie after browser restart?

2018-09-19 Thread Jesse Tayler
t; >> I think I’ve tried everything I could think of — >> >> Do you have say, a login cookie that lasts after browser restart? >> > > This is mine. > > WOCookie cookie = new WOCookie(userGUIDCookieKey, guid, "/", null, 2592000, > false); >

Re: WOCookie after browser restart?

2018-09-17 Thread Klaus Berkling
> On Sep 17, 2018, at 9:50 AM, Jesse Tayler <mailto:jtay...@oeinc.com>> wrote: > > I think I’ve tried everything I could think of — > > Do you have say, a login cookie that lasts after browser restart? > This is mine. WOCookie cookie = new WOCookie(userGUI

Re: WOCookie after browser restart?

2018-09-17 Thread Jesse Tayler
PM, Theodore Petrosky 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); > (r

WOCookie after browser restart?

2018-09-17 Thread Jesse Tayler
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 vari

Re: Sharing WOCookie between Sub Domains

2010-02-04 Thread Johnny Miller
Thank you. On Feb 4, 2010, at 2:38 PM, Chuck Hill wrote: > > On Feb 4, 2010, at 4:30 PM, Johnny Miller wrote: > >> Hi, >> >> If I set a WOCookie when the user visits http://www.example.com which saves >> some state how do I retrieve that info if for some reas

Re: Sharing WOCookie between Sub Domains

2010-02-04 Thread Chuck Hill
On Feb 4, 2010, at 4:30 PM, Johnny Miller wrote: Hi, If I set a WOCookie when the user visits http://www.example.com which saves some state how do I retrieve that info if for some reason they return to the site on http://example.com I tried setting the domain when the WOCookie gets

Sharing WOCookie between Sub Domains

2010-02-04 Thread Johnny Miller
Hi, If I set a WOCookie when the user visits http://www.example.com which saves some state how do I retrieve that info if for some reason they return to the site on http://example.com I tried setting the domain when the WOCookie gets created to http://www.example.com but that didn't se

WOResponse / WOCookie domain

2009-10-08 Thread Lachlan Deck
Hi there, I've subclassed WOResponse (ok ERXResponse) in order to add a rewrite hook for the setting of the cookies' domain (which by default is always empty). That's the easy part. The interesting thing is that when the browser receives the cookies they've all been preceded by a dot ('.'

Re: AJAX Requests and WOCookie

2009-02-19 Thread Hugi Thordarson
19, 2009, at 1:18 AM, Amedeo Mantica wrote: Hello, I have just discovered that is impossible to set a WOCookie in the meanwhile of an AjaxRequest is a bug or a tecnical limitation? I'd say technical limitation. Returning some JavaScript to set the cookie is probably the easies

Re: AJAX Requests and WOCookie

2009-02-19 Thread Chuck Hill
On Feb 19, 2009, at 1:18 AM, Amedeo Mantica wrote: Hello, I have just discovered that is impossible to set a WOCookie in the meanwhile of an AjaxRequest is a bug or a tecnical limitation? I'd say technical limitation. Returning some JavaScript to set the cookie is probabl

AJAX Requests and WOCookie

2009-02-19 Thread Amedeo Mantica
Hello, I have just discovered that is impossible to set a WOCookie in the meanwhile of an AjaxRequest is a bug or a tecnical limitation? Regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

Re: WOCookie & Safari

2008-09-05 Thread Chuck Hill
On Sep 5, 2008, at 7:53 AM, Yung-Luen Lan wrote: Uh, to be more pricisely, my problem is not because WO won't parse empty cookie properly. My problem is, cookie containing wosid and woinst will be deleted after quitting browser. Hence, there's no way to implement function like "login automatic

Re: WOCookie & Safari

2008-09-05 Thread Mike Schrag
Is there any way to keep session cookie after quit browsers? This isn't really a reliable way to implement this feature anyway, though. You would need to make your session lifetime way to long for this to be useful. A better way would be for you app to set a custom auth token cookie (that

Re: WOCookie & Safari

2008-09-05 Thread Yung-Luen Lan
Uh, to be more pricisely, my problem is not because WO won't parse empty cookie properly. My problem is, cookie containing wosid and woinst will be deleted after quitting browser. Hence, there's no way to implement function like "login automatically." Digging into this problem, I found that my se

RE: WOCookie & Safari

2008-09-05 Thread Andrew Lindesay
Hello Yung-Luen; I think these empty cookies will parse in WO 5.4.2 now, but the application server will log an error each time which is a bit annoying. I get my error log lines emailed to me so it was actually very annoying for a short while there! For this reason, I left that code (ma

Re: WOCookie & Safari

2008-09-05 Thread Yung-Luen Lan
Hi, Is this issue fixed in 5.4.2? I still encountered this problem (Not only Safari 3, but also FireFox 3 delete my cookie on quit) in 5.4.2. However, with Andrew's code inside my WOApplication.createRequest(), I still got the same problem. What could be wrong in my code? I rewrote some lin

Re: WOCookie & Safari

2008-03-03 Thread Andrew Lindesay
Hello Ryan; I stuck this... // [apl 18.feb.2008] // WebObjects 5.4.1 has a problem dealing with cookies that have their value as // an empty string. This little block of code should be able to remove those // such that they no longer pose a problem for the WO parser. This MUST BE // rem

Re: WOCookie & Safari

2008-03-03 Thread Ryan Klems
hael Kondratov wrote: For some unknown reason safari no longer properly parses my cookie generated by WOCookie. The cookies always expire when browser closes. When I look at safari's properties, my cookies have no expiration dates. My code: String hostName = ".aspireauctions.com&qu

Re: WOCookie & Safari

2008-03-03 Thread Michael Kondratov
ses my cookie generated by WOCookie. The cookies always expire when browser closes. When I look at safari's properties, my cookies have no expiration dates. My code: String hostName = ".aspireauctions.com"; String path = "/"; NSTimestamp currentTime = n

Re: WOCookie & Safari

2008-03-03 Thread Ryan Klems
g? Chuck On Mar 3, 2008, at 10:39 AM, Michael Kondratov wrote: For some unknown reason safari no longer properly parses my cookie generated by WOCookie. The cookies always expire when browser closes. When I look at safari's properties, my cookies have no expiration dates. My code:

Re: WOCookie & Safari

2008-03-03 Thread Chuck Hill
ating the wrong format, or is this a Safari bug? Chuck On Mar 3, 2008, at 10:39 AM, Michael Kondratov wrote: For some unknown reason safari no longer properly parses my cookie generated by WOCookie. The cookies always expire when browser closes. When I look at safari's properties,

Re: WOCookie & Safari

2008-03-03 Thread Michael Kondratov
ed by WOCookie. The cookies always expire when browser closes. When I look at safari's properties, my cookies have no expiration dates. My code: String hostName = ".aspireauctions.com"; String path = "/"; NSTimestamp currentTime = new NSTimes

Re: WOCookie & Safari

2008-03-03 Thread Chuck Hill
safari no longer properly parses my cookie generated by WOCookie. The cookies always expire when browser closes. When I look at safari's properties, my cookies have no expiration dates. My code: String hostName = ".aspireauctions.com"; String path = "/"; NSTi

WOCookie & Safari

2008-03-03 Thread Michael Kondratov
For some unknown reason safari no longer properly parses my cookie generated by WOCookie. The cookies always expire when browser closes. When I look at safari's properties, my cookies have no expiration dates. My code: String hostName = ".aspireauctions.com"; String path = &

Re: WOCookie Issue & WOLips Timezone

2008-02-17 Thread Andrew Lindesay
Hello Joe; I have just worked around the problem you have mentioned by parsing- and-dumping empty cookies in my WOApplication.createRequest(..) override. It's a crude patch until the next WO version, but it seems to remove the problem. cheers. The cookie issue unfortunately missed that u

Re: WOCookie Issue & WOLips Timezone

2008-01-11 Thread Mr. Pierre Frisch
The easiest way to customize cookies behavior is to have you own subclass of WOResponse. There quite a few hooks you can use to customize the behavior. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 11, 2008, at 9:59, Joe Moreno wrote: Pierre, Thanks for clearing up the cookie

Re: WOCookie Issue & WOLips Timezone

2008-01-11 Thread Joe Moreno
Pierre, Thanks for clearing up the cookie and time zone issue. I didn't know the problem with the time zone was a WO bug, I thought it was an Eclipse bug. Also, I've tried several different ways to delete the wosid cookie when I'm terminating a session without any luck. Can you r

Re: WOCookie Issue & WOLips Timezone

2008-01-11 Thread Lachlan Deck
On 11/01/2008, at 5:35 PM, Joe Moreno wrote: Hi All, I just upgraded from Tiger client to Leopard and I've noticed two issues. First, the Eclipse Console correctly reports the time zone as PST, but the actual time digits are GMT. Am I missing something? I'm running Eclipse 3.3.1.1 and

Re: WOCookie Issue & WOLips Timezone

2008-01-11 Thread Mr. Pierre Frisch
Hi Joe, Both are known bugs. The GMT/PST bug will be fixed in the next update of WO. The cookie issue unfortunately missed that update and will have to wait for the next one. The issue is that the cookie parsing is too strict and consider the empty value as a mistake so it trips on wosid=

WOCookie Issue & WOLips Timezone

2008-01-10 Thread Joe Moreno
Hi All, I just upgraded from Tiger client to Leopard and I've noticed two issues. First, the Eclipse Console correctly reports the time zone as PST, but the actual time digits are GMT. Am I missing something? I'm running Eclipse 3.3.1.1 and WOLips 3.3.4574. Second, I keep getting An

Re: WOCookie

2007-03-14 Thread Karl Gretton
can store other information in a cookie: - WO can manipulate cookies through the WOCookie class. See http://developer.apple.com/documentation/Webobjects/Reference/API/ com/webobjects/appserver/WOCookie.html If you are asking whether you can detect if cookies are enabled on the client browser

WOCookie

2007-03-14 Thread WIESEN Bruno
Hello, Is there a way to detect if the cookies are enabled with WebObjects? Thank you. Bruno. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update y