impossible to read $_SESSION vars on PHP facebook app. When this happens the facebook->getUser method returns 0. This is driving me mad...There's a lot of literature around the web but it seems that no one has found what causes this problem. I've stated that sometimes when you load the page $_SESSION vars seem to have disappeared. I'm not only talking about the facebook session, when getUser returns 0, all session vars (even the ones I initialized before) are not set anymore. Anyone has a clue of why is this happenning or how to solve it?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Did you remember to call session_start() on the pages that are giving you trouble? Without this, $_SESSION vars won't be initialised.