Fwd: (ERX)WOForm creates a new Session

2013-03-13 Thread Roger Perryman
This was supposed to go to the list but apparently only went to Chuck. I have the page working now. Begin forwarded message: > From: Roger Perryman > Date: March 12, 2013 2:24:44 PM EDT > To: Chuck Hill > Subject: Re: (ERX)WOForm creates a new Session > > I guess what conf

Re: (ERX)WOForm creates a new Session

2013-03-13 Thread Greg Brown
want it to create a new Session until > after the page is submitted. Loading the Login page creates a new session. > Initially, I had a few elements that had session references but I corrected > those. I am still getting a session created. I've traced it down to the > ERXWOF

Re: (ERX)WOForm creates a new Session

2013-03-12 Thread Chuck Hill
Perryman wrote: > I am creating a Login page and I don't want it to create a new Session until > after the page is submitted. Loading the Login page creates a new session. > Initially, I had a few elements that had session references but I corrected > those. I am still getting

Re: (ERX)WOForm creates a new Session

2013-03-12 Thread Ramsey Gurley
gt; I am creating a Login page and I don't want it to create a new Session until > after the page is submitted. Loading the Login page creates a new session. > Initially, I had a few elements that had session references but I corrected > those. I am still getting a session created.

(ERX)WOForm creates a new Session

2013-03-12 Thread Roger Perryman
I am creating a Login page and I don't want it to create a new Session until after the page is submitted. Loading the Login page creates a new session. Initially, I had a few elements that had session references but I corrected those. I am still getting a session created. I've traced

Re: new Session

2010-11-20 Thread Farrukh Ijaz
On 11/23/09 5:06 PM, Frank Stock wrote: > Hi all, > > I want to be able to create a new session, so once the user has logged in and > is working in one session, he should be able to open a new session, but > without logging in again. > I need this because if a user is for in

Re: new Session

2010-11-20 Thread Larry Mills-Gahl
k wrote: > Hi all, > > I want to be able to create a new session, so once the user has logged in and > is working in one session, he should be able to open a new session, but > without logging in again. > I need this because if a user is for instance creating an invoice and th

Re: new Session

2009-11-24 Thread Frank Stock
Well, I do need a new session, because I use the session to handle the current documents, just like a shopping-cart. I use ERXJSOpenWindowHyperlink to start a directAction, but I always get the same session. Frank Op 24-nov-2009, om 03:35 heeft webobjects-dev-requ...@lists.apple.com het

Re: new Session

2009-11-23 Thread Chuck Hill
On Nov 23, 2009, at 2:06 PM, Frank Stock wrote: Hi all, I want to be able to create a new session, so once the user has logged in and is working in one session, he should be able to open a new session, but without logging in again. I need this because if a user is for instance creating an

Re: new Session

2009-11-23 Thread Andrew Lindesay
Hello Frank; You could pass basic session information between the instances and then allow a trusted token to initiate a new session on an other instance other than the one on which the user was previously working. cheers. > I want to be able to create a new session, so once the user

new Session

2009-11-23 Thread Frank Stock
Hi all, I want to be able to create a new session, so once the user has logged in and is working in one session, he should be able to open a new session, but without logging in again. I need this because if a user is for instance creating an invoice and the phone is going, so he can create

Re: new Session being created

2008-09-04 Thread Guido Neitzer
Good to know if I have a need to use something like that again. Thanks, Guido On 04.09.08 22:43, "Andrew Lindesay" <[EMAIL PROTECTED]> wrote: > Hello Guido; > > Yes OpenJMS is terrible under load. ActiveMQ is a bit better, but > SwiftMQ in my experience has been very good despite being a bit o

Re: new Session being created

2008-09-04 Thread Andrew Lindesay
Hello Guido; Yes OpenJMS is terrible under load. ActiveMQ is a bit better, but SwiftMQ in my experience has been very good despite being a bit of a performance to configure. Actually I should say that "very good" is a bit of an understatement -- it doesn't seem to slip-up in my usage.

Re: new Session being created

2008-09-04 Thread Andrew Lindesay
Hello Guido; Yes OpenJMS is terrible under load. ActiveMQ is a bit better, but SwiftMQ in my experience has been very good despite being a bit of a performance to configure. http://www.swiftmq.com/ cheers. I tend to use a JMS topic to distribute this information around instead.

Re: new Session being created

2008-09-04 Thread Josh Paul
Thanks for all your collective feedback. I'm going to experiment with a couple implementations to see what works best. On Sep 4, 2008, at 9:30 PM, Guido Neitzer wrote: On 04.09.08 22:23, "Andrew Lindesay" <[EMAIL PROTECTED]> wrote: I tend to use a JMS topic to distribute this information

Re: new Session being created

2008-09-04 Thread Guido Neitzer
On 04.09.08 22:23, "Andrew Lindesay" <[EMAIL PROTECTED]> wrote: > I tend to use a JMS topic to distribute this information around > instead. This works very well. Taught by bad experience with OpenJMS never to trust a JMS tool I still prefer the database for that. OpenJMS locks up under load. F

Re: new Session being created

2008-09-04 Thread Andrew Lindesay
Hello; I tend to use a JMS topic to distribute this information around instead. This works very well. cheers. Do you have any concerns about read/write to the db being overwhelming? (We're using the status as a percentage of process completion.) Depends on how frequently you are updating

Re: new Session being created

2008-09-04 Thread Guido Neitzer
On 04.09.08 21:32, "Josh Paul" <[EMAIL PROTECTED]> wrote: > That's an approach I thought about, and am considering. > > Do you have any concerns about read/write to the db being > overwhelming? (We're using the status as a percentage of process > completion.) Depends on how frequently you are up

Re: new Session being created

2008-09-04 Thread Josh Paul
"Josh Paul" <[EMAIL PROTECTED]> wrote: I'm not storing the id in cookies, as this will ultimately wind up as a web service. I have moved the thread, which seems to have helped (as there's no new session being created). Now I just need to figure out why the 'stat

Re: new Session being created

2008-09-04 Thread Guido Neitzer
it. cug On 04.09.08 21:17, "Josh Paul" <[EMAIL PROTECTED]> wrote: > I'm not storing the id in cookies, as this will ultimately wind up as > a web service. > > I have moved the thread, which seems to have helped (as there's no new > session being crea

Re: new Session being created

2008-09-04 Thread Josh Paul
I'm not storing the id in cookies, as this will ultimately wind up as a web service. I have moved the thread, which seems to have helped (as there's no new session being created). Now I just need to figure out why the 'status' isn't being set (or read) correctly.

Re: new Session being created

2008-09-04 Thread Chuck Hill
On Sep 4, 2008, at 5:43 PM, Josh Paul wrote: I'm not swallowing exceptions anywhere, and if I am they're printing to stdout. I do think the session is locked or not checked in. I need to investigate further. That would give you deadlock or unlocked access, not create a new

Re: new Session being created

2008-09-04 Thread Josh Paul
fire that DA from a spawned thread from the RR loop. You might end up trying to check out a session from the session store that is already checked out. Not sure what would cause the creation of a new session though ... maybe that it is throwing an exception while trying to access th

Re: new Session being created

2008-09-04 Thread Guido Neitzer
Only thought I have is that it might not be a good idea to fire that DA from a spawned thread from the RR loop. You might end up trying to check out a session from the session store that is already checked out. Not sure what would cause the creation of a new session though ... maybe that it is

Re: new Session being created

2008-09-04 Thread Josh Paul
100%. I left out the fact that this is related to a Thread, as that's where the status is being created. So, I have a DA that fires the process and another DA that checks in on it. The issue is that when checking, a new Session keeps getting created. Thoughts? On Sep 4, 2008, at 3:

Re: new Session being created

2008-09-04 Thread Guido Neitzer
And you are sure, your session is not terminated somewhere else? cug On 04.09.08 15:59, "Josh Paul" <[EMAIL PROTECTED]> wrote: > I'm using WO 5.3 with a version of Wonder about 1 week old... > > On Sep 4, 2008, at 2:50 PM, Guido Neitzer wrote: > >> On 04.09.08 15:42, "Chuck Hill" <[EMAIL PROTE

Re: new Session being created

2008-09-04 Thread Josh Paul
I'm using WO 5.3 with a version of Wonder about 1 week old... On Sep 4, 2008, at 2:50 PM, Guido Neitzer wrote: On 04.09.08 15:42, "Chuck Hill" <[EMAIL PROTECTED]> wrote: That sort of thing should work. Which version of WO? There may have been some related bugs in earlier versions of 5.4 A

Re: new Session being created

2008-09-04 Thread Guido Neitzer
On 04.09.08 15:42, "Chuck Hill" <[EMAIL PROTECTED]> wrote: > That sort of thing should work. Which version of WO? There may have > been some related bugs in earlier versions of 5.4 As far as I know, that should work. But I always call "existingSession()" before I do anything else in a DA call.

Re: new Session being created

2008-09-04 Thread Chuck Hill
information, a new Session is created, thereby rendering the action useless. The action includes the sessionID via the wosid key: http://localhost/cgi-bin/WebObjects/Test.woa/-/wa/status?wosid=ees0hDQNM0wTL3nLXQbD8M Is there any reason why this should/could be occurring

new Session being created

2008-09-04 Thread Josh Paul
I have a DirectAction which attempts to read information from a current session. However, when accessing the information, a new Session is created, thereby rendering the action useless. The action includes the sessionID via the wosid key: http://localhost/cgi-bin/WebObjects

Re: new session on each request

2008-01-25 Thread Zak Burke
he sessionID is available in dispatchRequest and that it looks like the new session is being generated by Application._initializeSessionInContext. When I override that as follows: public WOSession _initializeSessionInContext(WOContext context) { WORequest r = context.request

Re: new session on each request

2008-01-24 Thread Chuck Hill
ing a form) reuse existing sessions. I must have some basic setting goofed up, but I cannot figure out what it is. [...] The logs with that shows the sessionID is available in dispatchRequest and that it looks like the new session is being generated by Application._initializeSessionInCo

Re: new session on each request

2008-01-24 Thread Ryan Klems
looks like the new session is being generated by Application._initializeSessionInContext. When I override that as follows: public WOSession _initializeSessionInContext(WOContext context) { WORequest r = context.request(); NSLog .out.app

Re: new session on each request

2008-01-24 Thread Chuck Hill
le in dispatchRequest and that it looks like the new session is being generated by Application._initializeSessionInContext. When I override that as follows: public WOSession _initializeSessionInContext(WOContext context) { WORequest r = context.request(); NSLog.out.app

Re: new session on each request

2008-01-24 Thread Mr. Pierre Frisch
uests generated from within the app (submitting a form) reuse existing sessions. I must have some basic setting goofed up, but I cannot figure out what it is. [...] The logs with that shows the sessionID is available in dispatchRequest and that it looks like the new session is

Re: new session on each request

2008-01-24 Thread Zak Burke
ionID is available in dispatchRequest and that it looks like the new session is being generated by Application._initializeSessionInContext. When I override that as follows: public WOSession _initializeSessionInContext(WOContext context) { WORequest r = context.re

Re: new session on each request

2008-01-24 Thread Chuck Hill
. The stacktrace does show where I'm getting a new session, but what I don't understand is WHY. Here is my current Application.dispatchRequest: public WOResponse dispatchRequest(WORequest r) { NSLog.out.appendln("REQUEST COOKIES: " + r.cookies()); NS

Re: new session on each request

2008-01-24 Thread Zak Burke
t or direct action? That stack trace may show you where this is happening. It's a component -- Main.wo. This is literally just a straight up default application as created by the "New WebObjects Application..." wizard. The stacktrace does show where I'm getting a new sess

Re: new session on each request

2008-01-24 Thread Chuck Hill
ple.woa/wo/0.4 As soon as I try to re-enter the application, however, by visiting the root URL, http://localhost/wo/WebObjects/simple.woa a new session is created. Here is the debugging I've added to Application.java: public WOSession _initializeSessionInContext(WOContext context

new session on each request

2008-01-24 Thread Zak Burke
he same session is used. I see post URLs like this: http://localhost/wo/WebObjects/simple.woa/wo/0.4 As soon as I try to re-enter the application, however, by visiting the root URL, http://localhost/wo/WebObjects/simple.woa a new session is created. Here is the debugging I&

Re: Create new Session & Login as User from Admin Session

2007-02-06 Thread Mike Schrag
WOServerSessionStore sessionStore = (WOServerSessionStore) WOApplication.application().sessionStore(); * Note: this is assuming you're not using servlets and you're using the default session store. If you're using servlets I believe this is a different session store, and I haven't look

Re: Create new Session & Login as User from Admin Session

2007-02-06 Thread Mike Schrag
ange state transitions. A much better way would be to steal the USER of the session and create a new session with the same user ... While I haven't done the "hijack a session" option, I did recently just write an active session browser/terminator (which might roll into Project

Re: Create new Session & Login as User from Admin Session

2007-02-06 Thread Robert Walker
I generally do the latter whenever possible. This way if a new session is created and the user has not logged in they will be automatically redirected to the login panel before the page is allow to be accessed. If your design is closer to the "gate keeper" login style then you cou

Create new Session & Login as User from Admin Session

2007-02-06 Thread dave . jenkin
Hi, I would like to login as a user from a admins session. I don't want to do this by a DA for security reasons. It would be great if the admin clicks on "Login as whoever" and gets a new session with the user data in a new browser window. The admin session should not be termin