You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Pi Trash <pt...@web.de> on 2009/03/31 13:28:21 UTC

session management

Hi,

does wicket always create a session when a new user enters a page? Or is it possible to turn the session creation off?

tia
_______________________________________________________________________
DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
DSL Freundschaftswerbung! http://dsl.web.de/?ac=OM.AD.AD008K15279B7069a


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


Re: session management

Posted by Martijn Dashorst <ma...@gmail.com>.
On Tue, Mar 31, 2009 at 1:52 PM, ptrash <pt...@web.de> wrote:
> That means if the user visites 3 bookmarkable pages, then three sessions will
> be created?

Yes, but TEMPORARY sessions that are not bound to a HTTP session.
These will be available to the garbage collector after each request.

This has nothing to do with your container sessions.

Martijn

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


Re: session management

Posted by ptrash <pt...@web.de>.
Ok, thanks a lot.

p
-- 
View this message in context: http://www.nabble.com/session-management-tp22803196p22902873.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: session management

Posted by Igor Vaynberg <ig...@gmail.com>.
3 wicket session objects will be created. when a stateful page is
visited this wicket session object is stored in an http session.

-igor

On Tue, Mar 31, 2009 at 4:52 AM, ptrash <pt...@web.de> wrote:
>
> That means if the user visites 3 bookmarkable pages, then three sessions will
> be created?
>
>
>
> Martijn Dashorst wrote:
>>
>> Yes, but the session is only permanent when you call bind(), or a
>> stateful page is requested and the state needs to be stored for links,
>> forms, ajax etc.
>>
>> As long as you use bookmarkable pages (and links to them), and
>> stateless forms, and no ajax, your site will be stateless, and wicket
>> will not automatically bind the session to HTTP Session.
>>
>> Martijn
>>
>> On Tue, Mar 31, 2009 at 1:28 PM, Pi Trash <pt...@web.de> wrote:
>>> Hi,
>>>
>>> does wicket always create a session when a new user enters a page? Or is
>>> it possible to turn the session creation off?
>>>
>>> tia
>>> _______________________________________________________________________
>>> DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
>>> DSL Freundschaftswerbung! http://dsl.web.de/?ac=OM.AD.AD008K15279B7069a
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.5 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/session-management-tp22803196p22803539.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: session management

Posted by ptrash <pt...@web.de>.
That means if the user visites 3 bookmarkable pages, then three sessions will
be created?



Martijn Dashorst wrote:
> 
> Yes, but the session is only permanent when you call bind(), or a
> stateful page is requested and the state needs to be stored for links,
> forms, ajax etc.
> 
> As long as you use bookmarkable pages (and links to them), and
> stateless forms, and no ajax, your site will be stateless, and wicket
> will not automatically bind the session to HTTP Session.
> 
> Martijn
> 
> On Tue, Mar 31, 2009 at 1:28 PM, Pi Trash <pt...@web.de> wrote:
>> Hi,
>>
>> does wicket always create a session when a new user enters a page? Or is
>> it possible to turn the session creation off?
>>
>> tia
>> _______________________________________________________________________
>> DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
>> DSL Freundschaftswerbung! http://dsl.web.de/?ac=OM.AD.AD008K15279B7069a
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.5 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/session-management-tp22803196p22803539.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: session management

Posted by Martijn Dashorst <ma...@gmail.com>.
Yes, but the session is only permanent when you call bind(), or a
stateful page is requested and the state needs to be stored for links,
forms, ajax etc.

As long as you use bookmarkable pages (and links to them), and
stateless forms, and no ajax, your site will be stateless, and wicket
will not automatically bind the session to HTTP Session.

Martijn

On Tue, Mar 31, 2009 at 1:28 PM, Pi Trash <pt...@web.de> wrote:
> Hi,
>
> does wicket always create a session when a new user enters a page? Or is it possible to turn the session creation off?
>
> tia
> _______________________________________________________________________
> DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
> DSL Freundschaftswerbung! http://dsl.web.de/?ac=OM.AD.AD008K15279B7069a
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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