Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When users register, the account menu doesn't reflect that #345

Open
waldoj opened this issue Nov 9, 2019 · 1 comment
Open

When users register, the account menu doesn't reflect that #345

waldoj opened this issue Nov 9, 2019 · 1 comment

Comments

@waldoj
Copy link
Member

waldoj commented Nov 9, 2019

Immediately upon registering, the user is logged in, but the account menu continues to read Register | Log In instead of Profile | Log Out. Figure out what's going on and fix this.

@waldoj
Copy link
Member Author

waldoj commented Dec 1, 2019

This is handled in class.Page.php with this bit:

if (isset($_SESSION['registered']) && ($_SESSION['registered'] == 'y'))
{
    $account = '<a href="/account/">Profile</a> | <a href="/account/logout/">Log Out</a>';
}
else
{
    $account = '<a href="/account/register/">Register</a> | <a href="/account/login/">Log In</a>';
}

So my best guess is that the registered cookie isn't being set immediately upon registration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant