• Resolved baggen22

    (@baggen22)


    Hello,

    I work on my blog a lot. Whenever I am on my private PC, I would like to stay logged in as an administrator forever.

    Right now, I have to log in everytime I restart the PC and here and then when I’m working. Is there any way to change the cookie lifetime?

    There wouldn’t be any security issues as it is my private PC that nobody else can use.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    It can not be possible to remain logged in forever on your blog or any site whenever you restart PC..

    Thanks,

    Shane G.

    Thread Starter baggen22

    (@baggen22)

    Ok…is it possible then to stay logged in for maybe 10 hours, as long as the PC is running?

    It can not be possible to remain logged in forever on your blog or any site whenever you restart PC..

    Thanks,

    Shane G.

    Thanks, very helpful.

    Of course baggen22 didn’t mean ‘LOGGED IN’ forever!
    Come on!!! You know what he ment.
    He doesn’t want to be bothered to enter the login credentials. Just to get rid of them. There’s always a checkbox that says “log me in automatically next time”.
    Something like that.

    That’s reading a cookie previously saved in user’s browser, and if you had answered other than to get (not-an) answer-points that could have helped me today!
    (Some people gets their attention pulled to the Austin Power’s co-worker’s mole… -or my skills on my 2nd language grammar- instead of the question)

    I’m tracking the same info. So far I found a function that saves the ID cookie: wp_set_auth_cookie($user_id);
    but probably you’ll have to change its expiration to a few days/months?

    I have stayed logged into my site for 2 or 3 hours at a time when working on it – never been logged out by WordPress – don’t know why 10 hours would be an issue – I go to my site often enough that the address is the top one for my browser address bar – just drop it down and go – enter my log-in name and password – about 10 seconds – probably your browser could remember your name and password

    It’s a pluggable function.

    http://core.trac.wordpress.org/browser/trunk/wp-includes/pluggable.php

    Line 678 for wp_set_auth_cookie.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Stay logged in forever as administrator’ is closed to new replies.