Switching logged user in the Pub interface to Adm Inter

Author Message

Guilherme Longo

Friday 21 September 2007 5:12:12 am

My friends once created my condition, when one user make login like EDITOR, appears one link in your menu to access directly admin Interface. But I did'nt find one way to link properly.

One way but not right yet, is:

<li><a href="http://site/site_admin" target="_self" title="Admin Interface">Admin Interface</a></li>

but I need put my username and password to get access.

I did several search in the forum and I found one topic, where one person tell to be impossible to do it, and has only one way to do it, creating one method or class for it.

Is possible to do it using cache or another way, if the user is Already logged does'nt to be nescessary make the login again?

André R.

Friday 21 September 2007 5:49:47 am

Hi, this is quite possible.

The setting you are looking for is in site.ini:

[Session]
SessionNamePerSiteAccess=disabled

Set it in the override folder or at least the frontpage siteaccess + the admin siteacess.
You need to tweek the other session settigs as well if you have a multi db install of ez publish ( some siteaccesses uses another database).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Guilherme Longo

Friday 21 September 2007 7:14:27 am

Perfect André....

I just changed the parameter to enable and is working perfect.

Thank

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.