P
P
phil_b2014-01-12 12:50:04
WordPress
phil_b, 2014-01-12 12:50:04

How to reset authorization in wordpress on a secure page?

WordPress allows you to create password protected pages.
After entering the password on such a page, if you close it and return after a while, if not much time has passed, authorization will remain and the password will not have to be entered again.
How to trigger an authorization reset for such a page?
Here, codex.wordpress.org/Using_Password_Protection, I didn't find the answer...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2014-01-12
@phil_b

You can simply reset the cookie when the page is displayed, then the user will have to enter a pass each time, or reset the cookie via the link, in js or php.
It is done in 1 line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question