I want to make client login form on the home page and when client login, I want the client to land into to specific page. Unless logged in, if tried to land to that page must be redirected to home page.
I have tried to use, Theme my login but did not get desired solution. I have tried to create my own widget area, and by password protecting the page. There are few problems that I faced.
- How to take user input and sanitaize it, I tried to use, wordpress esc_attr, esc_js, esc_html method, [Is that sufficient]
- I redirected the page to password protected page, but the password did not trigger the login.
- once I login to password protected page, it does not seem to log out even if I clear the cache or cookies.
So, basically, I want to have the solution. Thanks