Re: T5 Prevent user from multiple login
On Sat, 28 May 2011 10:16:38 -0300, Denoite wrote: Hi! Hi! I would like to prevent users from login in multiple times at a time. Is there a simple way to do that wit T5? Nothing specific to Tapestry itself, as this is a business rule, not a web tier one. Just have a boolean loggedIn field and table column and set it to true when the user authenticates and to false when it logs out. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 Prevent user from multiple login
What do you mean? Multiple logins at the same time from different browsers/machines? If so, you could associate the user with the sessionId the user logged in with (in memory or persisted). If the same user now logs in with a different sessionId invalidate the first one or disalow login on the second request. Cheers, Joost On 28/05/11 3:16 PM, Denoite wrote: Hi! I would like to prevent users from login in multiple times at a time. Is there a simple way to do that wit T5? Thanks a lot. Jo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5 Prevent user from multiple login
Hi! I would like to prevent users from login in multiple times at a time. Is there a simple way to do that wit T5? Thanks a lot. Jo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org