wp-blog-header.php killing sessions?
-
Hi, i have a custom made gallery script i’m trying to integrate with WordPress. I have everything working properly except there’s a problem with the login for the gallery script. When a user logs in the script is not saying they are logged in.
I used the following method of calling wp-blog-header.php in the gallery scrips header:
<?php
define(‘WP_USE_THEMES’, false);
require(‘../wp-blog-header.php’);
?>If i delete the above code, the gallery login works fine (despite all the theme related errors that then show up) so it seems as though something in wp-blog-header.php is killing the session started by the gallery script? Or could it perhaps be this gallery script is using session related names already used by wordress for its login stuff?
I really don’t know too much about php sessions or cookies, etc… so if anybody can come up with a possible solution or has had a similar problem while integrating a script your help would be very greatly appreciated.
Thank You!
David
- The topic ‘wp-blog-header.php killing sessions?’ is closed to new replies.