Skip to:
Content
Pages
Categories
Search
Top
Bottom

if (is_user_logged_in())

  • Im having an issue on the homepage after a user logs in. On my main nav I have a button that display Log In if a user is logged out but if they are logged in it displays Profile with a link to the the users profile page.

    Once a user is logged in and redirected to the homepage the button says Profile (this is correct). If they navigate to another page the button says Profile(correct again). If they navigate back to the homepage, the button changes to Login.

    Any ideas why this would change back to login only on the homepage while the user is logged in? Im a but stumped.

Viewing 6 replies - 1 through 6 (of 6 total)

Bump

Also, just realized that this issue is only happening in Safari and Chrome. Could it be a cookie issue?


modemlooper
Moderator

@modemlooper

Are you using a cache plugin?

@modemlooper

I am not using a caching plugin.

I tried setting cookie_domain to .domain.com, http://www.domain.com, and http://www.domain.com/subdomain and none of those work.

Would debugging provide any info?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘if (is_user_logged_in())’ is closed to new replies.
Skip to toolbar