We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    Hi,

    I used weblogin on about every website sofar end all of a sudden run in to this problem.
    When a webuser logs in, the documents/buttons that are privilliged (show in menu ticked) do nót appear. User will first have to refresh, sometimes a couple of times.
    After login out those same documents/buttons, remain visible. Only to dissapear on actually clicking one of those privilliged documents/buttons.

    Only difference with the other sites is that I use the "broadcast email to webusers" adapted Easy Newsletter snippet?
    http://modxcms.com/forums/index.php/topic,33080.msg206647.html#msg206647

    Here ’s the call:

      [!WebLogin? &tpl=`loginTpl`!]	


    loginTpl

    <!-- #declare:separator <hr> --> 
    <!-- login form section-->
    <div class="loginform">
    <form method="post" action="[+action+]"> 
        <fieldset>
            <input type="hidden" value="[+rememberme+]" name="rememberme" /> 
           <p> <label for="username" >User: </p><input type="text" class="field" name="username" id="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="[+username+]" /></label>
        	<p><label for="password" >Password: </p><input type="password" class="field" name="password" id="password" tabindex="2" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="" /></label>
           <p><input type="submit" value="[+logintext+]" name="cmdweblogin" class="button" /></p>
    	<a href="#" onclick="webLoginShowForm(2);return false;" id="forgotpsswd">Paswoord vergeten?</a>
    	</fieldset>
    </form>
    </div>
    <hr>
    <!-- log out hyperlink section -->
    <p>You are logged in.<br />
    Do you wish to <a href="[+action+]" class="button">[+logouttext+]</a>?</p>
    <hr>
    <!-- Password reminder form section -->
    <div class="loginform">
    <form method="post" action="[+action+]">
        <fieldset>
            <p>Kan gebeuren...<br />
            <input type="hidden" name="txtpwdrem" value="0" />
            <label for="txtwebemail">Vul hier je email adres in: <input type="text" name="txtwebemail" id="txtwebemail" class="field" size="24" /></label>
               	<input type="submit" value="Submit" name="cmdweblogin" class="button" /> <input type="reset" value="Cancel" name="cmdcancel" onclick="webLoginShowForm(1);" class="button" style="clear:none;display:inline" />
    </p>
        </fieldset>
    </form>
    </div>


    running on:
    Modx 0.9.6.3 rev 4565
    Database Version: 5.0.51a-community
    PHP Version 5.2.5

    Issue shows in IE7//FF3.0.7 & GChrome 1.0.154.48 on both Win XP (SP2) & Vista.
      • 4310
      • 2,310 Posts
      A quick look inside the Manager showed [[Wayfinder]] was being called as cachable on a cached page, changing to [!Wayfinder!] seems to have fixed the problem.