In wordpress, i have used nginx and done https the whole site. But when i want to access admin after SSL. I got this
You do not have sufficient permissions to access this page.
I have tried many things.
define('FORCE_SSL_ADMIN', true);
define('FORCE_SSL_LOGIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
But still i am getting the same issue. So Is there any solution for this ? Thank you.