I make php script, lets say test.php
which is in the root folder with the rest of word press (same folder as wp-config.php)
when i go to test.php i want to set $_SESSION["new_user"] = 'true';
and redirect back to main page.
but when i try to print out $_SESSION on the main page, 'new_user" is not there.
the header of test is:
[code]
require( dirname(__FILE__) . '/wp-config.php' );
wp_head();
[/code]
also, i seem to be able to use
wp_setcookie($login->user_login,$login->user_pass,false);
just fine.
ps: the point of the script is to login a user using a external method. i alredy have a plugin the overrides the wpmu login function. is the only way to solve this is in that plugin?
is there any way to do this the way i want to?