Cookie cant be read even cookie is present

The $_COOKIE array contains only these cookies that came in the request from the browser. setcookie() adds an HTTP header asking the client to send the cookie during subsequent requests. So yeah – you can’t access $_COOKIE in the same request it is set.

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)