I had come up with requirement where I need to provide a auto-login to WordPress blog with Guest user credentials. To accomplish that requirement first I had looked up at available plugins which can let me do that without writing a line of code. Finally I got something similar I wanted and I have modified that and written a plugin to match up that requirement. I owe lot to WordPress; and to add up my little contribution to WordPress community I have generalized that plugin and published it here on my blogs and WordPress Plugins directory.
To be fair this plugin is simple and do not have any interface from where you can configure it. Simply open up the auto-login.php file and edit following configuration array; that's it you are done.
How to configure WordPress Auto-Login ?
It's simple just look at code snippet and you will find out yourself..!
// Allow guest login from Friend URLs. Please specify list of all websites from which guest login is allowed.
// You can choose/specify different user to auto-login them from different websites.
$aFriend[] = array('URL' => 'http://life.digitss.com', 'USER' => 'guest');
$aFriend[] = array('URL' => 'http://www.digitss.com', 'USER' => 'guest');
$aFriend[] = array('URL' => 'http://www.dgtss.com', 'USER' => 'guest');
$aFriend[] = array('URL' => 'http://blogs.dgtss.com', 'USER' => 'guest');
Specify list of friend or ally websites along with USER. Yes, you can specify different User for auto-login from each website. So you can configure those websites based on roles/rights and set them up..!

#1 by Richard on February 9, 2010 - 6:16 pm
Quote
Hi there. Many thanks for this really interesting plugin. Looks very useful.
Can you tell us how it works please, technically? I'm trialling it but notice that, when you log out of the guest user account on the password protected site, you're not in fact logged out. I can select www.[sitename]/wp-admin and get straight back into the backend. Why is that?
Another question please is whether it'd be possible to make the autologon dependent on a click-through from a particular page on the referring website, rather than allowing any page on that site's domain to action an auto-logon. So, instead of www.sitename.org allowing you in, you'd only be allowed in if you clicked a link to the site from, for example, www.sitename.org/pages/auto-login-page. Is that possible?
Many thanks
Richard
#2 by Toms Skyline Design on July 19, 2010 - 8:29 am
Quote
I installed your plugin. However, rather than allowing only users from one website to bypass the login it allows EVERYONE to bybass the login; which defeats the purpose of having a site locked down. So, it does not appear to work.
#3 by Dharmavirsinh Jhala on July 22, 2010 - 2:46 am
Quote
Hi Tom,
Basically you need to configure this plugin..
Do you have a restricted login on your website?
If yes then you need to put a link to complete page from where you have kept link to your blog..
You can contact me if you have any problem configuring;
Though there seemed to be a bug which has been fixed. You can download another copy and try again..
Good Luck.
#4 by Toms Skyline Design on August 18, 2010 - 11:06 am
Quote
The site I was attempting to use your plugin for is a site that has some pages restricted and other pages open. I thought I had re-written a plugin that was allowing only specified users in; however, I have discovered that it was doing the same as yours. It appears to be allowing everyone in. Also, like the other person who posted, I also discovered that logging out using your plugin or the alternate one I wrote, only kicks the user to the logged out page; when, in fact they are still logged in. It is not clearing any of the cookies. I downloaded your plugin again from the WP site. However, it is Version 1.0 also. Do you have a newer version with a bug fix? I didnt notice any change unless you changed !== to === on one line.
#5 by Toms Skyline Design on August 18, 2010 - 3:43 pm
Quote
Thanks for some of the inspiration. I was able to get my plugin fixed so that it only allows the specifically allowed users to auto-login and when they log out, they are actually logged out. What a pain … but, I got it to work finally.
#6 by Dharmavirsinh Jhala on August 20, 2010 - 11:13 pm
Quote
Cheers…!
If you contribute your snippet it could be great help to others.. Tom.!