setting number of pages in the session

2011-06-28 Thread Harrie Hazewinkel
Hello,



Ik would like to reduce the amount of pages maintained in the session to 1
in order to disable the back button. How can I set this in wicket 1.5RC2?

With this I would like to avoid the possibility that after a logout, the user 
can come
back to the previous logged in page via the back button. I already search the 
Internet archives, but found nothing useful (some hints seemed not for wicket 
1.5RC2)


Any help appreciated,


Met hartelijke groet,
Harrie Hazewinkel
Software Architect



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: setting number of pages in the session

2011-06-28 Thread Martin Grigorov
Hi Harrie,

In RC5.1 (the latest one) there is IStoreSettings
(application.getStoreSettings()) which provides methods for
configuring the functionalities provided by the page stores.
But if you decrease the in memory store size then the page will be
looked up from the disk so it will be found again.
The in-memory (http session) storage is used as perf optimization for
faster retrieval.

Better make your page either stateless (all components should have
#getStatelessHint() == false) or unversioned (#setVersioned(false)).
This way the page wont be stored at all in the page stores.

On Tue, Jun 28, 2011 at 12:15 PM, Harrie Hazewinkel
hhazewin...@iprofs.nl wrote:
 Hello,



 Ik would like to reduce the amount of pages maintained in the session to 1
 in order to disable the back button. How can I set this in wicket 1.5RC2?

 With this I would like to avoid the possibility that after a logout, the user 
 can come
 back to the previous logged in page via the back button. I already search the
 Internet archives, but found nothing useful (some hints seemed not for wicket 
 1.5RC2)


 Any help appreciated,


 Met hartelijke groet,
 Harrie Hazewinkel
 Software Architect



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: setting number of pages in the session

2011-06-28 Thread Bruno Borges
Isn't it possible to code a PageStore that ... does not store pages?

Like DevNullPageStore ? :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Tue, Jun 28, 2011 at 6:31 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Harrie,

 In RC5.1 (the latest one) there is IStoreSettings
 (application.getStoreSettings()) which provides methods for
 configuring the functionalities provided by the page stores.
 But if you decrease the in memory store size then the page will be
 looked up from the disk so it will be found again.
 The in-memory (http session) storage is used as perf optimization for
 faster retrieval.

 Better make your page either stateless (all components should have
 #getStatelessHint() == false) or unversioned (#setVersioned(false)).
 This way the page wont be stored at all in the page stores.

 On Tue, Jun 28, 2011 at 12:15 PM, Harrie Hazewinkel
 hhazewin...@iprofs.nl wrote:
  Hello,
 
 
 
  Ik would like to reduce the amount of pages maintained in the session to
 1
  in order to disable the back button. How can I set this in wicket 1.5RC2?
 
  With this I would like to avoid the possibility that after a logout, the
 user can come
  back to the previous logged in page via the back button. I already search
 the
  Internet archives, but found nothing useful (some hints seemed not for
 wicket 1.5RC2)
 
 
  Any help appreciated,
 
 
  Met hartelijke groet,
  Harrie Hazewinkel
  Software Architect
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: setting number of pages in the session

2011-06-28 Thread Dan Retzlaff
Isn't the conventional logout operation destroying the session, thereby
preventing access to any of the session's pages?

Dan

On Tue, Jun 28, 2011 at 2:15 AM, Harrie Hazewinkel hhazewin...@iprofs.nlwrote:

 Hello,



 Ik would like to reduce the amount of pages maintained in the session to 1
 in order to disable the back button. How can I set this in wicket 1.5RC2?

 With this I would like to avoid the possibility that after a logout, the
 user can come
 back to the previous logged in page via the back button. I already search
 the
 Internet archives, but found nothing useful (some hints seemed not for
 wicket 1.5RC2)


 Any help appreciated,


 Met hartelijke groet,
 Harrie Hazewinkel
 Software Architect



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org