We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40675
    • 4 Posts
    Hello all,

    I have a site that I built for a customer, that has a protected area that the users need to log into, (after paying a paypal subscritpion..).

    Im running into some issues with certain browsers. I have a login snippet called inthe header of the site, so it is the same code throughout every page of the site. For some reason, when a user logs into the site via the login on the HOME page , or one other specific page , the user will be kicked out, and the website will go into a log out state when clicking on the top level navigation.

    When a user logs into via WebLogin from the page that the actual protected content lives, (or most of the other pages..) the site properly stays in the 'logged in mode' ..

    There is something that is happening on those specific pages, thatdoesnt let the weblogin, stay in the logged in state. Could this be an issue with page / template caching? or similar. I'll try and attach my code below:

    actual weblogin snippet call being used sitewide:

    [!WebLogin?  &logouthomeid=`1` &loginhomeid=`210`  &tpl=`loginTpl2`  !] 



    Full weblogin tpl (loginTpl2) :



    <!-- #declare:separator <hr> --> 
    <!-- login form section-->
    <form method="post" name="loginfrm" action="[+action+]" style="margin: 0px; padding: 0px;"> 
    <input type="hidden" value="[+rememberme+]" name="rememberme"> 
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><b>User:</b></td>
        <td><input type="text" name="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" size="8" style="width: 150px;" value="[+username+]" /></td>
      </tr>
      <tr>
        <td><b>Password:</b></td>
        <td><input type="password" name="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" style="width: 150px;" value="" /></td>   
      </tr>
      <tr>
     <td colspan="2">     <div style="display: block; margin:0 auto; text-align:right;">    <a href="#" onclick="webLoginShowForm(2);return false;">Forget Password?</a>        <input type="submit" value="[+logintext+]" name="cmdweblogin" />         </td>    </div>
      
       
    
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"> </td>
            <td align="right">                                    
            </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
      
      </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    <hr>
    <!-- log out hyperlink section --> Welcome,  [[username]]  
    <a href='[+action+]'>[+logouttext+]</a>
    <hr>
    <!-- Password reminder form section -->
    <form name="loginreminder" method="post" action="[+action+]" style="margin: 0px; padding: 0px;">
    <input type="hidden" name="txtpwdrem" value="0" />
    <table border="0">
        <tr>
          <td>Enter the email address of your account 
    below to receive your password:</td>
        </tr>
        <tr>
          <td><input type="text" name="txtwebemail" size="24" /></td>
        </tr>
        <tr>
          <td align="right"><input type="submit" value="Submit" name="cmdweblogin" />
          <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" /></td>
        </tr>
      </table>
    </form>
    
    
      • 40675
      • 4 Posts
      after confirming, it looks like there are 3 'problem' pages that dont keep a user logged in.
      the doc that is redirected to on login `210`.. that doc works fine when you log in from that page..

        • 40675
        • 4 Posts
        BTW, using WebLogin 1.1
          • 40675
          • 4 Posts
          I've attached my site tree for reference, (hoping it could help with my problem) All my member content is a child content of the Resources page (ID 210) . the pages Im having issues with login are doc ID's (1, 232, 241)