WordPress Cookies Expires

WordPress 有个特点, 饼干保质期(我在假扮自动翻译软件)很短很短, 最短 两天 最长 两周

本来就没多大一件事, 多余的话不多说了,

以 2.7.1 为例

wp-includes/pluggable.php:623

if ( $remember ) {
$expiration = $expire = time() + 1209600;

修改最后结尾的数字为你需要的,这里1209600是14天*24小时*60分*60秒

你可以考虑180*24*60*60,或者360*24*60*60,或者874!

This entry was posted in WordPress. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>