Session problem - object stays in after invalidate()

2012-09-27 Thread Ondrej Zizka
Hi, i am trying to implement a simple authentization. I've basically copied what's in the auth example #2 in wicket examples, and have a Logout button: add( new Link(logoutLink) { @Override public void onClick() { sess.invalidateNow();

Re: Session problem - object stays in after invalidate()

2012-09-27 Thread manuelbarzi
Which, when clicked, is performed, but in the second request, the User object, which set to null in my overriden signOut(), is back in my when are you exactly calling signOut? cant be deduced from your snippet and comment. Session.invalidateNow won't remove your custom session properties by

Re: Session problem - object stays in after invalidate()

2012-09-27 Thread Martin Grigorov
Hi, You need to use Session#invalidate() actually. #invalidate() schedules a call to #invalidateNow() at the end of the request cycle. By using #invalidateNow() you invalidate the current http session and right after this your app creates a new Session because it needs to finish the request

Solved // Re: Session problem - object stays in after invalidate()

2012-09-27 Thread Ondrej Zizka
Solved. I was writing an original reply, using I think I have something conceptually wrong, when it hit my mind: One of the components (the login/logout box) has this: final EsscAuthSession sess = (EsscAuthSession)getSession(); and the onClick() was like add( new

Re: stateless, not versioned pages - session problem

2012-01-09 Thread Martin Grigorov
On Sun, Jan 8, 2012 at 4:29 PM, Chris Colman chr...@stepaheadsoftware.com wrote: On Sun, Jan 8, 2012 at 11:31 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Not sure if I have an answer to your question but recently I asked how to turn off page versioning and was told to do:

RE: stateless, not versioned pages - session problem

2012-01-09 Thread Chris Colman
: stateless, not versioned pages - session problem On Sun, Jan 8, 2012 at 4:29 PM, Chris Colman chr...@stepaheadsoftware.com wrote: On Sun, Jan 8, 2012 at 11:31 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Not sure if I have an answer to your question but recently I asked how to turn off page

Re: stateless, not versioned pages - session problem

2012-01-09 Thread Martin Grigorov
] Sent: Monday, 9 January 2012 8:37 PM To: users@wicket.apache.org Subject: Re: stateless, not versioned pages - session problem On Sun, Jan 8, 2012 at 4:29 PM, Chris Colman chr...@stepaheadsoftware.com wrote: On Sun, Jan 8, 2012 at 11:31 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Not sure

Re: stateless, not versioned pages - session problem

2012-01-09 Thread kamiseq
, Chrisco -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, 9 January 2012 8:37 PM To: users@wicket.apache.org Subject: Re: stateless, not versioned pages - session problem On Sun, Jan 8, 2012 at 4:29 PM, Chris Colman chr...@stepaheadsoftware.com wrote: On Sun

Re: stateless, not versioned pages - session problem

2012-01-09 Thread kamiseq
any ideas about #base_domain=mydomain.com problem ;] pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: stateless, not versioned pages - session problem

2012-01-09 Thread kamiseq
ok I found the reason oAuth provider adds this #base_domain to callback url. I just dont understand why it stayed after redirection. the other issue (that after redirect urls looks like callback) is that I use ReplaceHandlerException and I rewrite data from original response to preserve cookies.

Re: stateless, not versioned pages - session problem

2012-01-08 Thread Martin Grigorov
Hej, On Sun, Jan 8, 2012 at 12:24 AM, kamiseq kami...@gmail.com wrote: hej I have weird problem with session that I cannot explain and that I don't fully understand. I started with default application settings and stateful web page. and the flow is that I 1. request homepage 2. put data

Re: stateless, not versioned pages - session problem

2012-01-08 Thread Martin Grigorov
:25 AM To: users@wicket.apache.org Subject: stateless, not versioned pages - session problem hej I have weird problem with session that I cannot explain and that I don't fully understand. I started with default application settings and stateful web page. and the flow is that I 1. request homepage 2

RE: stateless, not versioned pages - session problem

2012-01-08 Thread Chris Colman
Not sure if I have an answer to your question but recently I asked how to turn off page versioning and was told to do: getRequestCycleSettings().  setRenderStrategy(IRequestCycleSettings.RenderStrategy.ONE_PASS_RENDER); Actually this just turns off the redirecting. The pages are still

Re: stateless, not versioned pages - session problem

2012-01-08 Thread Martin Grigorov
On Sun, Jan 8, 2012 at 11:31 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Not sure if I have an answer to your question but recently I asked how to turn off page versioning and was told to do: getRequestCycleSettings().  

Re: stateless, not versioned pages - session problem

2012-01-08 Thread kamiseq
ok currently im using 1.5.3 i ll check with snapshot pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

RE: stateless, not versioned pages - session problem

2012-01-08 Thread Chris Colman
On Sun, Jan 8, 2012 at 11:31 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Not sure if I have an answer to your question but recently I asked how to turn off page versioning and was told to do: getRequestCycleSettings().  

Re: stateless, not versioned pages - session problem

2012-01-08 Thread kamiseq
ok so bind on session does the trick. now I looked at setAttribute method and I dont understand why the flow is altered when session is temporary. unfortunately I still get this #base_domain=mydoamin. so 1.5-SNAPSHOT behaves like 1.5.3 now I looked closely to url after last redirect to homepage

stateless, not versioned pages - session problem

2012-01-07 Thread kamiseq
hej I have weird problem with session that I cannot explain and that I don't fully understand. I started with default application settings and stateful web page. and the flow is that I 1. request homepage 2. put data to session 3. redirect to authorize with oauth provider (facebook, gmail, etc)

RE: stateless, not versioned pages - session problem

2012-01-07 Thread Chris Colman
: getPageSettings().setVersionPagesByDefault(false); explicitly. -Original Message- From: kamiseq [mailto:kami...@gmail.com] Sent: Sunday, 8 January 2012 9:25 AM To: users@wicket.apache.org Subject: stateless, not versioned pages - session problem hej I have weird problem with session that I

Major session problem [GAE]

2011-06-09 Thread Zeldor
is accessed by MySession.loggedInUser.[getters/setters here] and persisted to datastore when anything changes. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Major-session-problem-GAE-tp3584894p3584894.html Sent from the Users forum mailing list archive at Nabble.com

Re: Major session problem [GAE]

2011-06-09 Thread i...@e-dog.hu
On 2011.06.09. 10:48, Zeldor wrote: public static User loggedInUser; Is it correct? I think it is better without static! GeZo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Major session problem [GAE]

2011-06-09 Thread Pepijn de Geus
this message in context: http://apache-wicket.1842946.n4.nabble.com/Major-session-problem-GAE-tp3584894p3584894.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Major session problem [GAE]

2011-06-09 Thread Zeldor
Yeah, no idea why Static is there, must be some leftover from early code. It's good to have someone else take a look at your code and point the obvious :) I will check if it solves my problems. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Major-session-problem-GAE

RE: Major session problem [GAE]

2011-06-09 Thread Hielke Hoeve
problem [GAE] Yeah, no idea why Static is there, must be some leftover from early code. It's good to have someone else take a look at your code and point the obvious :) I will check if it solves my problems. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Major-session

Re: Major session problem [GAE]

2011-06-09 Thread Zeldor
. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Major-session-problem-GAE-tp3584894p3585460.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Major session problem [GAE]

2011-06-09 Thread Pepijn de Geus
static you of course get non-static method cannot be referenced from a static context compilation error. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Major-session-problem-GAE-tp3584894p3585460.html Sent from the Users forum mailing list archive at Nabble.com

Re: Major session problem [GAE]

2011-06-09 Thread Zeldor
So... MySession.get().getUser().getLand() to properly get a value from session? Looks like it could have some performance issues, or does it just look so scary? :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Major-session-problem-GAE-tp3584894p3585657.html

session problem

2009-01-07 Thread Pierre Gilquin
Hi all, I have problem with a Wicket app deployed to a new host with shared tomcat : Not Found The requested URL /Pharmaco/;jsessionid=77264BF90D4FC51FD38AEF8259D8AD91 was not found on this server. Wicket seems to need a directory /work/Catalina/localhost/Pharmaco/WicketFilter-filestore in