Hello all. I did this about 2 or 3 years ago on an older version of Wordpress, but doesn't seem to work anymore. Maybe some of you more savvy people out there can help me figure out this troubling problem I have ran into. I have an external PHP page (index2.php) that I am having all end-users land on before they can access the actual Wordpress blog. On this external page, I have buttons that entail Login and Register. Each with their respective forms from Wordpress linked to them. Now, my problem. When a user logs into his/her account, there seems to be a problem with carrying over the session or what not to Wordpress so they remain logged in when they get to the Wordpress. Is there anyone out there with experience in this that can shed some light on this situation? Many thanks and appreciation in advanced!
How are your sessions assigned? Show us some code, mate. But, basically, I would assume there are some sort of subfolder/subdomain-issue, and that the sessions are assigned to the wrong path. /subpath/ instead of / for instance.
<?php session_start(); define('WP_USE_THEMES', false); include_once("wp-load.php");//change with the path of wp-load.php if they do not reside together get_userdata($wp_user_id); $wp_user = wp_set_current_user($wp_user_id); wp_set_auth_cookie($wp_user_id); ?> PHP: That's what I have right now.