I have this login form:
<div id="login_form" class="droid font10">
{exp:member:login_form return="home/index"}
<label>Username</label> <input type="text" name="username" value="" maxlength="32" class="input" size="25" /><br >
<label>Password</label> <input type="password" name="password" value="" maxlength="32" class="input" size="25" /><br >
{if auto_login}
<input class='checkbox' type='checkbox' name='auto_login' value='1' /> Auto-login on future visits
{/if}
<input type="submit" name="submit" value="Submit" />
<a href="http://{path=member/forgot_password}">Forgot your password?</a>
{/exp:member:login_form}
</div><!-- end div login_form -->As you can see, I have “home/index” specified as the place to go after you submit the form. But, when you click the “submit” button, it takes you to “temp_page/index” instead. I have “temp_page” set as the default template group, but I want the form to take you to “home/index”. Why isn’t this working the way I would expect?
Next, when submit the form (with correct login info), and then manually go to “home/index”, I would expect to see the page as if “logged_in”. But that doesn’t happen; I see the page as if “logged_out”. This next bit of code has some conditionals that look for whether you are logged in/out:
{if logged_in}
Hello, {screen_name}. <a href="http://{path=logout}">Logout ></a>
<a href="#%22class=%22droid" class="droid font14 borderButton">VIEW PICK TRAY</a>
{/if}
{if logged_out}
{!-- <a href="http://{path=member/login}">Login</a> --}
<a href="#">Login</a>
{/if}... and the “logged_out” stuff shows, not the “logged_in_ stuff. Why?
More info: If I submit the form with incorrect login info, it also takes me to “temp_page/index”. Isn’t it supposed to go to somewhere else instead?
I am using .htaccess to remove “index.php” from my URLs, just FYI, in case this is relevant.