0

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.

2

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>
{/if}
1
  • Note above: the group ID number should be changed to whatever member group this is for. – Mutual Mar 3 '14 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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