[Moin-user] MOINSESSION per host/hostname

John Marshall John.Marshall at ec.gc.ca
Wed Aug 12 18:15:15 EDT 2009

Gunnar Scherf wrote:
> Hi John,
> please read single login for a farm
> http://moinmo.in/MoinMoinQuestions/Authentication#How_can_I_implement_single_login_for_a_farm
> You have to  use the same cache_dir for all wikis.

Actually, these wikis are totally independent, nothing shared. The
only thing that is in common is that the same host/hostname is used
between the wikis (of course, ports must be different).

Another scenario in which the session management using cookies does
not seem to be sufficient is if a wiki is running locally, and another is
being accessed via a tunnel, but is accessed via the same local hostname
but a port serviced by the tunnel. In this case, the same hostname is used,
but they are totally different wikis and not even in the same network or

After a bit more digging, I think the reality is that cookies are tied to
hostnames/domain names. Therefore, it does not seem to be possible,
using cookies, to run multiple, totally independent wikis on the same
host if the hostname that is being accessed is the same. Multiple
hostnames are required (like apache2 virtualhost). So, this is not really
a MM issue, but a cookie issue.

Unfortunately, that is a bit of a pain.


> Best regards Gunnar
> 2009/8/12 John Marshall <John.Marshall at ec.gc.ca 
> <mailto:John.Marshall at ec.gc.ca>>
>     Hi,
>     I am currently serving multiple, independent MM wiki instances
>     from the
>     same host. I have noticed that switching between the instances
>     requires
>     that I re-login. It seems that the session management (using the
>     MOINSESSION cookie) supports only one wiki/host (actually, hostname).
>     Am I understanding this correctly?
>     Thanks,
>     John
>     ------------------------------------------------------------------------------
>     Let Crystal Reports handle the reporting - Free Crystal Reports
>     2008 30-Day
>     trial. Simplify your report design, integration and deployment -
>     and focus on
>     what you do best, core application coding. Discover what's new with
>     Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>     _______________________________________________
>     Moin-user mailing list
>     Moin-user at lists.sourceforge.net
>     <mailto:Moin-user at lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/moin-user

More information about the Moin-user mailing list