<?php
/*
Plugin Name: Keep Me Logged In For a Year
Plugin URI: http://markratledge.com
Description: Sets a "logged in" cookie for one year (best for single user sites).
Version: 1.0
License: GPL
Author: Mark Ratledge
Author URI: http://markratledge.com
*/


//Keep me logged in

function keep_me_logged_in_for_1_year($expirein)
{
    return 31556926; // 1 year in seconds
}
add_filter('auth_cookie_expiration', 'keep_me_logged_in_for_1_year');