Re: Get all sessions and manipulate them
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 < jer...@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) 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:uuda...@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 < > > jer...@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 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-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Get all sessions and manipulate them
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) 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:uuda...@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 < > jer...@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 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-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Get all sessions and manipulate them
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:uuda...@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 < jer...@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 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-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
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 < jer...@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 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-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Get all sessions and manipulate them
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 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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
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