[Hippo-cms7-user] Unexpected logout

Ard Schrijvers a.schrijvers at onehippo.com
Mon Sep 3 14:27:35 CEST 2012


On Mon, Sep 3, 2012 at 1:28 PM, Marnix Kok <m.kok at tfe.nl> wrote:
> Hi Ard,
>
> I think it's related to our custom database-session implementation for
> Tomcat. As the infrastructure we are working on does not support sticky
> sessions we have been forced to move them into the database. To do this we
> generate our own session IDs, so the cms context has a different session
> manager than the site context.
>
> When the site is invoked using the composer it will check the database if
> there is a session with that ID, if not, a new ID is generated and a
> database session is started. Since the session cookie for the CMS is
> different then that of the site things go horribly wrong as the site
> overwrites the existing cookie ID.
>
> Hope this helps explain the situation.

Yes thank you very much. I wanted to make sure you did not hit some
strange use case from our stack, but this indeed sounds like very much
domain specific. Thanks for sharing

Regard Ard

>
> Cheers,
>
> Marnix
>
> On Mon, Sep 3, 2012 at 1:12 PM, Ard Schrijvers <a.schrijvers at onehippo.com>
> wrote:
>>
>> Hello Marnix,
>>
>> On Mon, Sep 3, 2012 at 12:24 PM, Marnix Kok <m.kok at tfe.nl> wrote:
>> > Hello,
>> >
>> > Just a quick update for people that are interested. Turns out the site's
>> > session cookie overrode the cms's session cookie as they were both
>> > running
>> > on the same domain. By changing the session cookie name in the CMS's
>> > tomcat
>> > context file, we've been able to remedy the situation.
>>
>> I am still curious how you got this problem? I assume you create an
>> http session in your website pages, right? So, if that one gets
>> created, you got logged out from the cms? I am curious if you can give
>> a minimal code example that reproduces this
>>
>> Regards Ard
>>
>> >
>> > Hope this helps someone.
>> >
>> > With kind regards,
>> >
>> > Marnix
>> >
>> >
>> >
>> > On Wed, Aug 29, 2012 at 5:43 PM, Mohammad Nour <m.nour at onehippo.com>
>> > wrote:
>> >>
>> >> Hi Marnix...
>> >>
>> >>    I just tried that scenario but I could not reproduce it. Would
>> >> please add more details, like if you see anything in the logs,
>> >> configuration is possible ?
>> >>
>> >> On Wed, Aug 29, 2012 at 4:51 PM, Marnix Kok <m.kok at tfe.nl> wrote:
>> >> > Hello everyone,
>> >> >
>> >> > After the upgrading an existing application to 7.7 we've seen some
>> >> > strange
>> >> > behavior that leaves us automatically logged out of the CMS.
>> >> >
>> >> > After having logged into the CMS I can click around and everything
>> >> > works
>> >> > fine. When I load a page in another browser window my CMS
>> >> > automatically
>> >> > logs
>> >> > out.
>> >> >
>> >> > I believe this behavior doesn't persist when I use two different
>> >> > browser
>> >> > (e.g. Firefox for CMS and Chrome to load a page).
>> >> >
>> >> > Has anyone experienced something similar, any suggestions?
>> >> >
>> >> > With kind regards,
>> >> >
>> >> > Marnix
>> >> >
>> >> > _______________________________________________
>> >> > Hippo-cms7-user mailing list and forums
>> >> > http://www.onehippo.org/cms7/support/forums.html
>> >>
>> >>
>> >>
>> >> --
>> >> Thanks
>> >> Mohammad Nour
>> >> _______________________________________________
>> >> Hippo-cms7-user mailing list and forums
>> >> http://www.onehippo.org/cms7/support/forums.html
>> >
>> >
>> >
>> > _______________________________________________
>> > Hippo-cms7-user mailing list and forums
>> > http://www.onehippo.org/cms7/support/forums.html
>>
>>
>>
>> --
>> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
>> Boston - 1 Broadway, Cambridge, MA 02142
>>
>> US +1 877 414 4776 (toll free)
>> Europe +31(0)20 522 4466
>> www.onehippo.com
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/forums.html
>
>
>
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html



-- 
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 1 Broadway, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com



More information about the Hippo-cms7-user mailing list