Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

ESI Nonce – how to confirm?

$
0
0

Replies: 0

I’ve been experimenting with the ESI nonce settings on my login form, but I’m not sure how to confirm whether it’s doing anything. I still sometimes get nonce errors when logging in.

First, in the PHP for the login form, I did this:

do_action( 'litespeed_nonce', 'my_login_nonce' );
wp_nonce_field( 'logging-in', 'my_login_nonce' );

But this doesn’t seem to work – I often get an error when validating the login with wp_verify_nonce().

So now I’ve entered ‘my_login_nonce’ in the ESI config page for LSC. I’m not convinced that this is any more successful.

How can I check whether ESI is working with the nonce? Should I see anything in the HTML that shows that the nonce is being handled by ESI? Do I have to switch on the debugging output?


Viewing all articles
Browse latest Browse all 59525

Trending Articles