ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

login form won't login user - MSM

July 08, 2007 3:40pm

Subscribe [0]
  • #1 / Jul 08, 2007 3:40pm

    magder

    24 posts

    I’m running Multiple Site Manager
    This problem began after upgrading to 1.6
    I’m not sure if it began after MSM was installed

    This is happening in the second site I setup.  The first site logs the user in okay.

    This is what happens:
    User logs in
    The redirecting dialogue appears and returns to return page
    The user shows as not being logged in

    I have set cookies and session ids
    I’ve tried with just cookies
    I’m seeing a cookie created

    Any thoughts on what I might have missed here?
    Do I need to specify the site in the login form?

    Thanks

    Build: 20070705

  • #2 / Jul 09, 2007 3:26am

    Paul Burdick

    480 posts

    Have you set the Cookie Domain preference in Admin -> Cookie Settings for each of these sites?

  • #3 / Jul 09, 2007 4:00am

    magder

    24 posts

    ouradio.org ›  Admin ›System Preferences › Cookie Settings

    In Cookie Domain I have .ouradio.org

    Cookie Path and cookie prefix are both empty

  • #4 / Jul 09, 2007 12:16pm

    magder

    24 posts

    Some further information:
    It appears that the login form for the site in question is not setting cookies.

    Here is a test login form
    http://www.ouradio.org/ouradio/login_test_page

  • #5 / Jul 09, 2007 12:21pm

    Robin Sowell

    13255 posts

    Hm- it’s passing the site id as ‘1’ it looks like.  But you said it’s the second site you setup that’s not working?  If you mouse over the site that’s NOT working in the site selection tab, what ID does it show?  My second one shows an id of 2 a la http://mysite.com/system/index.php?S=0&C=sites&site_id=2&page=Qz10ZW1wbGF0ZXN8

    Wonder if that’s the issue?

  • #6 / Jul 09, 2007 12:41pm

    magder

    24 posts

    The first site is “1” and the problem site is showing as “site_id=9”. 
    If you recall I had the problem with duplicating weblogs and data. Not enough php memory. 

    So I deleted this second site and added it again.  This must be why it is 9.

    Does this mean that the id for a site does not go away?

  • #7 / Jul 09, 2007 12:53pm

    Robin Sowell

    13255 posts

    The problem site is the one we’re looking at:

    It should be showing a site_id 9 IF that is the id showing for that site when you mouseover.  I just checked my test site- just have it setup in a subfolder, but the form is passing the correct id:

    Mine- working:
    <form id='member_login_form' method="post" action="http://test.media-cow.com/"  >
    <div>
    <input type="hidden" name="XID" value="7d41de1c09913d18ac0107736b1f1a4e483b5cc7" />
    etc….
    <input type="hidden" name="site_id" value="2" />
    
    Yours:
     <form method="post" action="http://www.ouradio.org/index.php"  >
    <div>
    etc….
    <input type="hidden" name="site_id" value="1" />
    </div>

    But it’s confusing since I’m not dead sure on how you have things set up.  But if I understand correctly- the ouradio.org site should be site id 9?  Correct?  In your path.php file for the goofed one, do you have the site shortname specified as per the docs?

    $site_name = 'Site_Short_Name';

    That might be the issue.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases