WordPress.org

Ready to get started?Download WordPress

Forums

wp-load.php Interfering with Sessions (1 post)

  1. bvarvel
    Member
    Posted 3 years ago #

    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

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic