I want to create a link from the font side of my site to the admin area.
The problem is the session id
<a href ="admin.php">go to admin</a>
This goes back to the login page even though I am logged in, how can I achieve this.
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityYou can use the {cp_session_id}
global variable to create a control panel link. See the documentation here.
{if logged_in_group_id == "1"}
<a href="{cp_url}?S={cp_session_id}">go to admin</a>
{/if}