Sharing session (or cookie) using Grails acegi plugin

Posted by firnnauriel on Stack Overflow See other posts from Stack Overflow or by firnnauriel
Published on 2010-04-27T03:36:03Z Indexed on 2010/04/27 3:43 UTC
Read the original article Hit count: 220

Filed under:
|

Is it possible for two different Grails project, also having different domains, to share a session/cookie?

Let's say I have 2 sites: www.mycompany.com, and, www.othercompany.com. Assume that both sites are having same domains, and same database and records too. What I want to know is if this code:

authenticateService.userDomain()

or even the

authenticateService.isLoggedIn()

will behave and return exactly the same object/result whether it is called in either of the site.

Basically, what we need is a solution for sharing/identifying logged in user between two different sites. Need more details on how to implement this using acegi 0.5.2 and grails 1.2.1.

Hoping for any leads on this. Thank you.

© Stack Overflow or respective owner

Related posts about grails

Related posts about acegi