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.

eZ debug

Timing: Jan 18 2025 18:24:14
Script start
Timing: Jan 18 2025 18:24:14
Module start 'layout'
Timing: Jan 18 2025 18:24:14
Module start 'content'
Timing: Jan 18 2025 18:24:15
Module end 'content'
Timing: Jan 18 2025 18:24:15
Script end

Main resources:

Total runtime1.1064 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.1563152.6563
Module start 'layout' 0.00650.0043 740.812539.5078
Module start 'content' 0.01071.0940 780.3203534.4922
Module end 'content' 1.10480.0016 1,314.812512.1094
Script end 1.1064  1,326.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3122160.0002
Check MTime0.00140.1252160.0001
Mysql Total
Database connection0.00150.136010.0015
Mysqli_queries1.054695.3168570.0185
Looping result0.00070.0657550.0000
Template Total1.067296.520.5336
Template load0.00220.199120.0011
Template processing1.065096.254820.5325
Template load and register function0.00020.021110.0002
states
state_id_array0.00100.089910.0010
state_identifier_array0.00090.085420.0005
Override
Cache load0.00180.1663200.0001
Sytem overhead
Fetch class attribute can translate value0.00100.087120.0005
Fetch class attribute name0.00090.083140.0002
XML
Image XML parsing0.00060.053320.0003
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00090.0815170.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs