-
1. Re: Anyone knows implementation of 'Remember Me' while login
sseidel Dec 1, 2011 9:10 AM (in response to poornima.abhi)Hi,
I don't know if this is the answer you're looking for, but AFAIK this is realised using a cookie which is sent to the client. The cookie certainly doesn't contain the password. You can also change the implementation of this, but I have forgotten how
stefan
-
2. Re: Anyone knows implementation of 'Remember Me' while login
ndkhoiits Dec 1, 2011 10:21 AM (in response to poornima.abhi)You can refer to the source code http://anonsvn.jboss.org/repos/gatein/portal/tags/3.1.0-GA/component/web/src/main/java/org/exoplatform/web/login/InitiateLoginServlet.java
If user chooses remember me, GateIn persists a cookie in the browser and a Credential in DB, in next login, GateIn obtains Credential by the cookie value stored in browser, if Credential is valid, he will be authenticated and automatically redirect to Portal
In addition, you can see how to persist and obtain the Credential in DB
and
-
3. Re: Anyone knows implementation of 'Remember Me' while login
poornima.abhi Dec 2, 2011 8:50 AM (in response to ndkhoiits)Hi Khoi,
Thanks for your quick reply.
I have one more doubt.I have developed my own portal.But when i logged in by requesting the url, http://localhost:8080/portal/private, it redirected to the Classic portal's home page.But i want to be redirected to my own page.Is it possible?
In short, I want to use the GateIn's login page(then only, I could use its 'Remember me' functionality), but at the same time, i want to be redirected to my own page when logged in, not to the classic portal's home page.
-
4. Re: Anyone knows implementation of 'Remember Me' while login
trong.tran Dec 4, 2011 10:12 PM (in response to poornima.abhi)There is a documentation about doing this that you may want to try : http://community.jboss.org/wiki/RedirectAUserToPageOnLoginlogoutBasedOnRole
-
5. Re: Anyone knows implementation of 'Remember Me' while login
poornima.abhi Dec 6, 2011 12:09 AM (in response to trong.tran)Thanku Trong.I made it..