Hi there, I’ve got a folder password protected. I want to detect on another non-protected page whether a user did sign into the protected section. Is this possible?
I notice that a cookie named wf_auth_page is placed once a user has signed in. I can see this in Chrome Developer Tools under Storage > Cookies. But I can only see it there when I’m on a protected page. When I go on a non-protected page The cookie doesn’t show up in the same place.
However, going to the Chrome Preferences > Content Settings > Cookies shows that the browser does have wf_auth_page.
I’ve tried using
if (document.cookie.indexOf('wf_auth_page') === -1 ) in order to detect the presence of the cookie on a non-protected page, but that didn’t seem to work.
Any suggestions would be welcome. Many thanks.