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.

1 Answer 1


You 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>
  • Note above: the group ID number should be changed to whatever member group this is for.
    – Mutual
    Mar 3, 2014 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.