You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by dpmihai <dp...@yahoo.com> on 2012/07/03 16:56:14 UTC
Wicket 1.4 newSession id
In my WebApplication is there possible to know the session id inside
newSession method?
public Session newSession(Request request, Response response) {
Session session = super.newSession(request, response);
...
String id = session.getId(); // returns null;
}
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337.html
Sent from the Users forum 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: Wicket 1.4 newSession id
Posted by dpmihai <dp...@yahoo.com>.
Thanks a lot.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337p4650339.html
Sent from the Users forum 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: Wicket 1.4 newSession id
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
Because there is no active session yet.
You have to call session.bind() before that.
On Tue, Jul 3, 2012 at 4:56 PM, dpmihai <dp...@yahoo.com> wrote:
> In my WebApplication is there possible to know the session id inside
> newSession method?
>
> public Session newSession(Request request, Response response) {
> Session session = super.newSession(request, response);
> ...
> String id = session.getId(); // returns null;
> }
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337.html
> Sent from the Users forum 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
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org