Problem when access wp-admin directly . WP redirect to wp-login.php with REAUTH=1 parameter.
This parameter kill all cookies...
I already get this prob with my CAS plugin and resolved it with filter.
To solve this , I add a filter into construct to remove this parameter
add_filter( 'login_url', array( $this, 'efg_wp_cas_clear_reauth' ) );
And my function :
/**
Clear reauth parameter from login url to login directly from CAS server.
Remove the reauth=1 parameter from the login URL, if applicable. This allows
us to transparently bypass the mucking about with cookies that happens in
wp-login.php immediately after wp_signon when a user e.g. navigates directly
to wp-admin.
*/
public function efg_wp_cas_clear_reauth( $login_url ) {
Hello
Problem when access wp-admin directly . WP redirect to wp-login.php with REAUTH=1 parameter. This parameter kill all cookies... I already get this prob with my CAS plugin and resolved it with filter.
To solve this , I add a filter into construct to remove this parameter add_filter( 'login_url', array( $this, 'efg_wp_cas_clear_reauth' ) );
And my function : /**
to wp-admin. */ public function efg_wp_cas_clear_reauth( $login_url ) {
}
Hope will help people using this plugin.