Php : How to log user in a certain siteaccess ?

Author Message

H-Works Agency

Wednesday 06 July 2011 7:29:27 am

Hi,

How can i log a user in a certain siteacces using the php api ?

There is eZUser::loginUser() but it only log people in current siteaccess.

Is there a way to login people in a different siteaccess which is on the same ezpublish install ?

EZP is Great

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 29 2025 23:44:30
Script start
Timing: Jan 29 2025 23:44:30
Module start 'layout'
Timing: Jan 29 2025 23:44:30
Module start 'content'
Timing: Jan 29 2025 23:44:30
Module end 'content'
Timing: Jan 29 2025 23:44:30
Script end

Main resources:

Total runtime0.0157 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2578151.2266
Module start 'layout' 0.00480.0022 739.484436.6875
Module start 'content' 0.00700.0073 776.171986.0781
Module end 'content' 0.01430.0014 862.250029.9766
Script end 0.0157  892.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.0031140.0002
Check MTime0.00106.6396140.0001
Mysql Total
Database connection0.00084.800210.0008
Mysqli_queries0.002113.632730.0007
Looping result0.00000.057710.0000
Template Total0.00106.510.0010
Template load0.00085.213010.0008
Template processing0.00021.247510.0002
Override
Cache load0.00063.678710.0006
General
dbfile0.003119.719880.0004
String conversion0.00000.044040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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