Title: wp-load.php Interfering with Sessions
Last modified: August 19, 2016

---

# wp-load.php Interfering with Sessions

 *  [bvarvel](https://wordpress.org/support/users/bvarvel/)
 * (@bvarvel)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wp-loadphp-interfering-with-sessions/)
 * I have a website that I pull recent posts from WordPress into the footer with
   wp-load.php. On my contact forms, the wp-load.php connection is interfering with
   session variables maintaining between form submissions.
 * Here is stripped down version to show only the form page:
 * [http://www.athomeinkaty.com/properties/test.php](http://www.athomeinkaty.com/properties/test.php)
 * The following code is included, which is causing the SESSION variables to not
   carry forward.
 *     ```
       // Include WordPress
       define('WP_USE_THEMES', false);
       require('../blogpress/wp-load.php');
       query_posts('showposts=5');
       ```
   
 * If I remove the above code, it works PERFECTLY.
 * Any help?

The topic ‘wp-load.php Interfering with Sessions’ is closed to new replies.

## Tags

 * [variables](https://wordpress.org/support/topic-tag/variables/)
 * [wp-load](https://wordpress.org/support/topic-tag/wp-load/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [bvarvel](https://wordpress.org/support/users/bvarvel/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/wp-loadphp-interfering-with-sessions/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
