0

I'm seeing an issue where I login on the frontend and the URL becomes S=c3992270d168f3ec9ab1df5bc06afce3/test where test is the segment I'm passing from the return parameter.

I can't fathom where the first part is coming from though.

Logic in the template is pretty simple

{if logged_in}
hello steven
<a href="{path='logout'}">Log Out</a>
{if:else}
{exp:member:login_form return="/{segment_1}/{segment_2}"}
  <p>
    <label>Username</label><br>
    <input type="text" name="username" value="" maxlength="32" size="25">
  </p>
  <p>
    <label>Password</label><br>
    <input type="password" name="password" value="" maxlength="32" size="25">
  </p>
  <p><input type="submit" name="submit" value="Submit"></p>
  <p><a href="{path='member/forgot_password'}">Forgot your password?</a></p>
{/exp:member:login_form}
{/if}

Session related? Structure bug (seen that before) or something else?

0

Setting $config['website_session_type'] = 'c'; has sorted the logic.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.