Forums / Setup & design / Switching logged user in the Pub interface to Adm Inter

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

eZ debug

Timing: Jan 18 2025 15:07:13
Script start
Timing: Jan 18 2025 15:07:13
Module start 'content'
Timing: Jan 18 2025 15:07:13
Module end 'content'
Timing: Jan 18 2025 15:07:13
Script end

Main resources:

Total runtime0.2540 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.9531180.8125
Module start 'content' 0.00700.0062 768.765694.0703
Module end 'content' 0.01320.2407 862.8359522.6250
Script end 0.2540  1,385.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00381.4939200.0002
Check MTime0.00150.5953200.0001
Mysql Total
Database connection0.00080.300510.0008
Mysqli_queries0.205280.77591410.0015
Looping result0.00140.56491390.0000
Template Total0.240394.610.2403
Template load0.00090.371210.0009
Template processing0.239394.213210.2393
Override
Cache load0.00070.261410.0007
Sytem overhead
Fetch class attribute can translate value0.00080.303910.0008
XML
Image XML parsing0.00030.102410.0003
General
dbfile0.00511.9982200.0003
String conversion0.00000.002330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs