PHP Session not being passed

If a PHP session ($_SESSION) is not being passed from a web site using WordPress.

ANSWER: Add the missing “www.” in the wordpress site area.

WRONG URL: http://example.com (missing the “www.”)
RIGHT URL: http://www.example.com

Solution:

By adding the “www.” to the WordPress domain name the problem was solved:

Login to WordPress Admin area
Go to Settings – General
Add “www.” to the WordPress address (URL) and Blog address (URL).

2 thoughts on “PHP Session not being passed”

  1. Dear i m buid ecommerce site but i m install on woocommerce plugin but return
    Fatal error: Maximum execution time of 30 seconds exceeded in C:wampwwwEcommercewp-includesclass-http.php on line 973
    Call Stack
    # Time Memory Function Location
    1 0.0032 206728 {main}( ) ..update.php:0
    2 10.5692 15811528 Plugin_Upgrader->install( ) ..update.php:120
    3 10.5698 15817440 WP_Upgrader->run( ) ..class-wp-upgrader.php:498
    4 10.6601 15953248 WP_Upgrader->download_package( ) ..class-wp-upgrader.php:375
    5 10.6606 15920592 download_url( ) ..class-wp-upgrader.php:133
    6 11.4465 15921416 wp_safe_remote_get( ) ..file.php:497
    7 11.4465 15921856 WP_Http->get( ) ..http.php:70
    8 11.4465 15922512 WP_Http->request( ) ..class-http.php:396
    9 12.9646 15927088 WP_Http->_dispatch_request( ) ..class-http.php:249
    10 12.9646 15927144 WP_Http_Streams->request( ) ..class-http.php:333

    1. Hi Ashish,

      Seems something is taking too long, Plugin_Upgrader may be the problem…
      Most of this site is basic php snippets… i cant really comment on what the problem could be…..
      Sorry…..

Leave a Comment

Your email address will not be published. Required fields are marked *