You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by uud ashr <uu...@gmail.com> on 2009/08/11 05:59:02 UTC
Get all sessions and manipulate them
Hi all,
How to manipulate all existing sessions on wicket.
I can get the SessionData trough getRequestLogger().getLiveSessions(), but I
can't manipulate the SessionData.
For examples, I have session class:
public class MyAppSession extends WebSession {
...
public void setLoggedUser(User user) {
}
public User getLoggedUser() {
}
}
I want to kick all logged users because I want to do something like
maintenance thing by using theSession.setLoggedUser(null) to all available
sessions.
Anyone knows?
Regards,
uudashr
Re: Get all sessions and manipulate them
Posted by uud ashr <uu...@gmail.com>.
Okay then. Thanks Jeremy.So now I know Wicket didn't have this feature.
Regards,
uudashr
On Fri, Aug 14, 2009 at 10:23 AM, Jeremy Thomerson <
jeremy@wickettraining.com> wrote:
> It'd be easy to create this as an addon project. Wicketstuff?
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Thu, Aug 13, 2009 at 10:23 AM, Jing Ge (Besitec IT
> DEHAM)<JG...@besitec.com> wrote:
> > Hello,
> >
> > This is also a very interesting question that I wanna ask.
> >
> > I've googled and found a single Nabble Mail site about it:
> > http://www.nabble.com/Get-all-sessions-users-for-a-web-application-td213
> > 67229.html
> >
> > We can only get some session data from the RequestLogger, but not the
> > session itself. So if we wanna manipulate all sessions, using the
> > RequestLogger ist not the correct way.....
> >
> > Implementing the HttpSessionListener should be work, but the same code
> > will repeated by all projects, that wanna manipulate the sessions....
> >
> > any common feature in wicket? Maybe 1.4.x?
> >
> > Regards!
> > Jing
> >
> > -----Original Message-----
> > From: uud ashr [mailto:uudashr@gmail.com]
> > Sent: Dienstag, 11. August 2009 13:25
> > To: users@wicket.apache.org
> > Subject: Re: Get all sessions and manipulate them
> >
> > I don't know. Asked many times but maybe not so popular. I can't find it
> > easily.
> > Do I have to save it
> > manually all available session by creating class implementing ISession
> > store?
> > Or there is another way?
> >
> > Regards,
> > uudashr
> >
> > On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson <
> > jeremy@wickettraining.com> wrote:
> >
> >> This question has been asked and answered many times on this mailing
> >> list. Please try searching the archives on Nabble. Then let us know
> >> if you have questions about one of those implementations.
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >>
> >> On Mon, Aug 10, 2009 at 10:59 PM, uud ashr<uu...@gmail.com> wrote:
> >> > Hi all,
> >> > How to manipulate all existing sessions on wicket.
> >> > I can get the SessionData trough
> > getRequestLogger().getLiveSessions(),
> >> but I
> >> > can't manipulate the SessionData.
> >> > For examples, I have session class:
> >> >
> >> > public class MyAppSession extends WebSession {
> >> > ...
> >> > public void setLoggedUser(User user) {
> >> > }
> >> >
> >> > public User getLoggedUser() {
> >> >
> >> > }
> >> > }
> >> >
> >> >
> >> > I want to kick all logged users because I want to do something like
> >> > maintenance thing by using theSession.setLoggedUser(null) to all
> >> available
> >> > sessions.
> >> > Anyone knows?
> >> >
> >> > Regards,
> >> > uudashr
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Get all sessions and manipulate them
Posted by Jeremy Thomerson <je...@wickettraining.com>.
It'd be easy to create this as an addon project. Wicketstuff?
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Aug 13, 2009 at 10:23 AM, Jing Ge (Besitec IT
DEHAM)<JG...@besitec.com> wrote:
> Hello,
>
> This is also a very interesting question that I wanna ask.
>
> I've googled and found a single Nabble Mail site about it:
> http://www.nabble.com/Get-all-sessions-users-for-a-web-application-td213
> 67229.html
>
> We can only get some session data from the RequestLogger, but not the
> session itself. So if we wanna manipulate all sessions, using the
> RequestLogger ist not the correct way.....
>
> Implementing the HttpSessionListener should be work, but the same code
> will repeated by all projects, that wanna manipulate the sessions....
>
> any common feature in wicket? Maybe 1.4.x?
>
> Regards!
> Jing
>
> -----Original Message-----
> From: uud ashr [mailto:uudashr@gmail.com]
> Sent: Dienstag, 11. August 2009 13:25
> To: users@wicket.apache.org
> Subject: Re: Get all sessions and manipulate them
>
> I don't know. Asked many times but maybe not so popular. I can't find it
> easily.
> Do I have to save it
> manually all available session by creating class implementing ISession
> store?
> Or there is another way?
>
> Regards,
> uudashr
>
> On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson <
> jeremy@wickettraining.com> wrote:
>
>> This question has been asked and answered many times on this mailing
>> list. Please try searching the archives on Nabble. Then let us know
>> if you have questions about one of those implementations.
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Mon, Aug 10, 2009 at 10:59 PM, uud ashr<uu...@gmail.com> wrote:
>> > Hi all,
>> > How to manipulate all existing sessions on wicket.
>> > I can get the SessionData trough
> getRequestLogger().getLiveSessions(),
>> but I
>> > can't manipulate the SessionData.
>> > For examples, I have session class:
>> >
>> > public class MyAppSession extends WebSession {
>> > ...
>> > public void setLoggedUser(User user) {
>> > }
>> >
>> > public User getLoggedUser() {
>> >
>> > }
>> > }
>> >
>> >
>> > I want to kick all logged users because I want to do something like
>> > maintenance thing by using theSession.setLoggedUser(null) to all
>> available
>> > sessions.
>> > Anyone knows?
>> >
>> > Regards,
>> > uudashr
>> >
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Get all sessions and manipulate them
Posted by "Jing Ge (Besitec IT DEHAM)" <JG...@besitec.com>.
Hello,
This is also a very interesting question that I wanna ask.
I've googled and found a single Nabble Mail site about it:
http://www.nabble.com/Get-all-sessions-users-for-a-web-application-td213
67229.html
We can only get some session data from the RequestLogger, but not the
session itself. So if we wanna manipulate all sessions, using the
RequestLogger ist not the correct way.....
Implementing the HttpSessionListener should be work, but the same code
will repeated by all projects, that wanna manipulate the sessions....
any common feature in wicket? Maybe 1.4.x?
Regards!
Jing
-----Original Message-----
From: uud ashr [mailto:uudashr@gmail.com]
Sent: Dienstag, 11. August 2009 13:25
To: users@wicket.apache.org
Subject: Re: Get all sessions and manipulate them
I don't know. Asked many times but maybe not so popular. I can't find it
easily.
Do I have to save it
manually all available session by creating class implementing ISession
store?
Or there is another way?
Regards,
uudashr
On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson <
jeremy@wickettraining.com> wrote:
> This question has been asked and answered many times on this mailing
> list. Please try searching the archives on Nabble. Then let us know
> if you have questions about one of those implementations.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Mon, Aug 10, 2009 at 10:59 PM, uud ashr<uu...@gmail.com> wrote:
> > Hi all,
> > How to manipulate all existing sessions on wicket.
> > I can get the SessionData trough
getRequestLogger().getLiveSessions(),
> but I
> > can't manipulate the SessionData.
> > For examples, I have session class:
> >
> > public class MyAppSession extends WebSession {
> > ...
> > public void setLoggedUser(User user) {
> > }
> >
> > public User getLoggedUser() {
> >
> > }
> > }
> >
> >
> > I want to kick all logged users because I want to do something like
> > maintenance thing by using theSession.setLoggedUser(null) to all
> available
> > sessions.
> > Anyone knows?
> >
> > Regards,
> > uudashr
> >
>
> ---------------------------------------------------------------------
> 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: Get all sessions and manipulate them
Posted by uud ashr <uu...@gmail.com>.
I don't know. Asked many times but maybe not so popular. I can't find it
easily.
Do I have to save it
manually all available session by creating class implementing ISession store?
Or there is another way?
Regards,
uudashr
On Tue, Aug 11, 2009 at 11:36 AM, Jeremy Thomerson <
jeremy@wickettraining.com> wrote:
> This question has been asked and answered many times on this mailing
> list. Please try searching the archives on Nabble. Then let us know
> if you have questions about one of those implementations.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Mon, Aug 10, 2009 at 10:59 PM, uud ashr<uu...@gmail.com> wrote:
> > Hi all,
> > How to manipulate all existing sessions on wicket.
> > I can get the SessionData trough getRequestLogger().getLiveSessions(),
> but I
> > can't manipulate the SessionData.
> > For examples, I have session class:
> >
> > public class MyAppSession extends WebSession {
> > ...
> > public void setLoggedUser(User user) {
> > }
> >
> > public User getLoggedUser() {
> >
> > }
> > }
> >
> >
> > I want to kick all logged users because I want to do something like
> > maintenance thing by using theSession.setLoggedUser(null) to all
> available
> > sessions.
> > Anyone knows?
> >
> > Regards,
> > uudashr
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Get all sessions and manipulate them
Posted by Jeremy Thomerson <je...@wickettraining.com>.
This question has been asked and answered many times on this mailing
list. Please try searching the archives on Nabble. Then let us know
if you have questions about one of those implementations.
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Aug 10, 2009 at 10:59 PM, uud ashr<uu...@gmail.com> wrote:
> Hi all,
> How to manipulate all existing sessions on wicket.
> I can get the SessionData trough getRequestLogger().getLiveSessions(), but I
> can't manipulate the SessionData.
> For examples, I have session class:
>
> public class MyAppSession extends WebSession {
> ...
> public void setLoggedUser(User user) {
> }
>
> public User getLoggedUser() {
>
> }
> }
>
>
> I want to kick all logged users because I want to do something like
> maintenance thing by using theSession.setLoggedUser(null) to all available
> sessions.
> Anyone knows?
>
> Regards,
> uudashr
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org