Wordpress Autologin Plugin not working on server Wordpress Autologin Plugin not working on server wordpress wordpress

Wordpress Autologin Plugin not working on server


Well I rectified the problem I was facing.I was just setting up the current user's from Cake Side to WP only through the User Id set in the Session variable.But there is a chance that incremented id's in Cake's User Table could be different and when we a are putting that into Wp_users table it could be different than that.so in the new plugin I just added some of the line in which retrieve the username of the Logged In user and then fetch the ID of that user,coz we know that there is 0 possibility of having two(or more) Users with same USERNAME.That's why we then fetch the Id of the Username we have in the Session and then use

wp_set_current_user($user_id, $user_name);

You all can see that I have replaced $user_login (that was by default set to Guest) with $user_name(fetched from the Session Variable).Now it is working fine.The main issue was that in my Local system Cake's Tables and Wordpress tables were Synced very nicely,but in server there was some problem with the synchronization.


is your blog under a different subdomain like blog.domain.com. in that case, a new session would be created for blog visitor unless you do a work around.

does your domain change from domain.com to www.domain.com when you go from main site to blog? if thats the case, a new session is also created.