How do I add $_SESSION[”] to my wordpress page?

Remove your session_start() and at the beginning of your functions.php put this:

if (!session_id()) {
    session_start();
}

For use from a plugin use this:

function register_session(){
    if( !session_id() )
        session_start();
}
add_action('init','register_session');

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