Might be a dumb question, but I hope someone can explain it to me in a simple way for a beginner to understand.
Say I had a file only logged in users to my WordPress site are allowed to access. If I use a variable in nginx to redirect logged in users to that file based on the presence of the logged in cookie, such as:
if ($http_cookie ~* "(wordpress_logged_in_)") {
return blah
}
Would that be a proper, safe, or acceptable use or no?