how to increase connection time

Maybe your hook called too early. And after yours, this connection time changes elsewhere. Try to increase priority like that:

add_filter( 'auth_cookie_expiration', 'keep_me_logged_in', 99, 3);
function keep_me_logged_in( $expiration, $user_id, $remember ) {/*your code*/}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)