I'm developing simple JSF application which consists of three EAR packages. The problem taht I face is that I need to create a login system which can identify users based on cookies id. I tired to create who identical EAR packages with a EJB which takes the session id and store it into database table. It turns out that every EAR package makes his own cookie id. Is it possible to configure JBoss 7.1.0 to share cookie sesions between EAR packages?