Hi, I have installed WP to be part of my existing website. I now have the need to pass $_SESSION variables to WP from the site, but for some reason I'm being unable to accomplish this. Some more info: - I have Register Globals turned off - I've put session_start() on wp-config.php still, the $_SESSION variables don't work... Sad Here's a strange thing; locally when I specify in index.php: session_start(); echo "value= ".$_SESSION['test']; Everything works fine and I can pass values from the site's scripts into WP. When doing exactly the same thing on a real server, it doesn't work. The $_SESSION values seem to be killed? Please, help!
Remove it from wp-config. You would most likely need to put it at the beginning of index.php, or in wp-blog-header.php. Also, this could break plugins so test to make sure all of your site still works after implementing it.
I've tried removing from wp-config.php and putting it on the index.php file. The result was the same. :-(
I found a similar article to the problem you were experiencing: http://blog.ginchen.de/en/2008/08/15/session-variablen-in-wordpress/ But they seem to point the problem at register globals.
Ok, this is a bit difficult to fix if you are not familiar with PHP. Either WP or your other script, is using a different session name...if you would like, i can help you figure it out over messenger. Simply message me.
I appreciate everybody's help on this matter! For future reference; I've managed to solve this problem and I've posted the solution in my blog at: http://www.ruifeio.com/2009/06/30/php-session-not-being-from-site-to-wordpress/