Title: cookie problems?
Last modified: August 30, 2016

---

# cookie problems?

 *  Resolved [hc4zrr324](https://wordpress.org/support/users/hc4zrr324/)
 * (@hc4zrr324)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/cookie-problems/)
 * when logged in i go:
 * $User = new FEUP_User();
    var_dump($User);
 * and get:
 * object(FEUP_User)#313 (2) { [“Username”:”FEUP_User”:private]=> NULL [“User_ID”:”
   FEUP_User”:private]=> NULL }
 * this only happens on iOS devices – iPhone iPad etc.
 * I’m thinking it might have something to do with the way iOS handles cookies but
   I have no idea. How can I fix this?
 * [https://wordpress.org/plugins/front-end-only-users/](https://wordpress.org/plugins/front-end-only-users/)

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

 *  Plugin Contributor [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744661)
 * Hi hc4,
 * Would it be possible for us to get a link to your website, and a login?
 * If you suspect Safari being the cause of it, have you tried changing the cookies
   settings? To set whether Safari blocks cookies or not in iOS 8 or later, tap 
   Settings > Safari > Block Cookies and choose one of the options given to you.
 * Let us know if it works or not, we will wait for a link to test. 🙂
 * Best regards,
    EWD
 *  Thread Starter [hc4zrr324](https://wordpress.org/support/users/hc4zrr324/)
 * (@hc4zrr324)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744678)
 * hi EWD,
 * Thanks for your offer! Here’s the URL: [http://thepowerfulnow.com](http://thepowerfulnow.com)
 * How can I send you a login? Do you need one for wp-admin or just a login for 
   your plugin or both?
 * We’ve tried changing the cookie settings. No luck 🙁
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744679)
 * > Would it be possible for us to get a link to your website, and a login?
 * Link to the site is fine but [@etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
   please do not ask for a login. I’m am 100% sure you mean well but please _never
   ask for credentials on these forums._
 * Now for the why: The internet is a wonderful place full of very nice people and
   a few very bad ones. I’m sure everyone here is very nice however, by giving some
   ones keys to your house you are trusting they wont steal anything. Likewise the
   person who takes the keys is now responsible for the house FOREVER.
 * If something was to go wrong, then you the author may well legally become liable
   for damages, which they would not normally have been as their software is provided
   without warranty.
 * Please be aware that repeatedly asking for credentials will result in us asking
   you to repeatedly stop before escalating up to the plugins team.
 *  Thread Starter [hc4zrr324](https://wordpress.org/support/users/hc4zrr324/)
 * (@hc4zrr324)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744691)
 * well EWD, it seems I shouldn’t be providing these credentials here. Do you have
   any suggestions as to how to troubleshoot the issue in my OP? I should also add
   that this same code runs perfectly fine on another page template and I’m getting
   no PHP errors in the page template where that code doesn’t work. Thanks!
 *  Plugin Author [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744713)
 * Hi hc,
 * Is there a sign up page somewhere?
 * What are you trying to do in the code sample? When you say works fine, you mean
   the Username and User_ID are both set correctly inside the instance of the class?
 *  Thread Starter [hc4zrr324](https://wordpress.org/support/users/hc4zrr324/)
 * (@hc4zrr324)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744714)
 * the secret registration page: [http://www.thepowerfulnow.com/register/](http://www.thepowerfulnow.com/register/)
 * yes you have it right. by works fine i mean Username and User_ID are both non-
   null inside the instance of the class.
 * we have a check in 3 page templates:
 * $User = new FEUP_User();
    if ( $User->Is_Logged_In() ) : wp_nav_menu(array( ‘
   theme_location’ => ‘convenings-menu’, ‘container’ => ‘nav’, ‘menu_class’ => ‘
   convenings-menu’, )); endif;
 * the page templates can be viewed at the following urls:
 * [http://www.thepowerfulnow.com/convenings/](http://www.thepowerfulnow.com/convenings/)(
   this one var_dumps the $User object)
    [http://www.thepowerfulnow.com/newyork/](http://www.thepowerfulnow.com/newyork/)(
   this is the only one where the conditional statement above returns true) [http://www.thepowerfulnow.com/membership](http://www.thepowerfulnow.com/membership)
 * Please let me know if there’s anything else I can do to help.
 * Thanks!!!
 *  Plugin Author [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744728)
 * Hi hc,
 * Is there any difference in how the calls are made?
 * If it’s working correctly on one page, the best thing would be to figure out 
   what’s different with the other two. For example, is the call made at a different
   point in the template? Are there any differences in the code you’re using?
 *  Thread Starter [hc4zrr324](https://wordpress.org/support/users/hc4zrr324/)
 * (@hc4zrr324)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744729)
 * No difference – the calls are even using the same variable name in all the page
   templates. Only thing that’s different between the templates is there’s different
   HTML. Please let me know if you have any other suggestions. Thanks!
 *  Plugin Author [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * (@rustaurius)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744732)
 * They’re also made at the same time, for example, in the header?
 * I’m not sure what could possibly be causing the difference if they use the same
   code at the same point in the WordPress loading process. Does anyone have any
   ideas?

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

The topic ‘cookie problems?’ is closed to new replies.

 * ![](https://ps.w.org/front-end-only-users/assets/icon-128x128.png?rev=1805921)
 * [Front End Users](https://wordpress.org/plugins/front-end-only-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-only-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-only-users/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-only-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-only-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-only-users/reviews/)

## Tags

 * [Apple](https://wordpress.org/support/topic-tag/apple/)
 * [cookie](https://wordpress.org/support/topic-tag/cookie/)
 * [cookies](https://wordpress.org/support/topic-tag/cookies/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 9 replies
 * 4 participants
 * Last reply from: [Rustaurius](https://wordpress.org/support/users/rustaurius/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/cookie-problems/#post-6744732)
 * Status: resolved