Forum
Admin cookie
Hi,
Is it possible to access the cookie planted when an admin logs in on the live site? I'm running through some ideas to allow the admin to show/hide pages or the entire site during development that would use some basic re-directs in the header but I want to be able to bypass the redirect if the visitor is an admin so they can (obviously) still view their site.
Or would there be an easier way to check if the visitor to the site is an admin?
You could do this:
Cheers Drew :)
I found this particularly useful!
I used it to build a fixed topbar to the content pages while you are logged in as an admin (similar to how other CMSs do), is there any reason that Perch hasn't implemented something like this as default?
Awesome - I've put this into a perch layout.
On the page (e.g. a sitemap with SEO texts for internal use)
And in said Layout:
Perfect!
Some clever uses for this! :D Wonder how many other hidden gems there in Perch :P
This is what I do for staging sites. Check if we're not in production mode, and if so, require a login.