Login problem

Author Message

kuba kuba

Tuesday 25 August 2009 5:52:32 am

Hi everyone,

I have some problem with user login, and I can not figure out what could be the cause.

I have 2 users (members) A and B. I login as A, then logout, and then login again, but this time as user B, everything is ok, except the fact that at top part of site there are logout(user A), and if i want to edit profile i go to edit page of user A.

If I clear the cache at admin panel, and press f5 on the page everything seems to be OK now.

cubby cub

Tuesday 25 August 2009 6:22:07 am

is this really a problem?

if you clear your cache and the issue is resolved, you're good to go.

where a user may not go through clearing cache, your users also probably won't have two accounts that they simultaneously monitor.

if it's bothering you, access account A via Firefox, access account B via Internet Explorer ;)

Aang: Just like the legend says, we let love lead the way.

kuba kuba

Tuesday 25 August 2009 6:40:44 am

hi, thanks for reply.

yes, it is a problem, because, even though i clear the cache and then refresh site, if i logout and the login as user A, i got the same issue (got data of B user).

I think in general the problem is: if i login as a some member it log in but it takes lastlogged person data.

It is very weird, because the site was working ok for several months and it has over 30 members and it was everything ok, this problem came after adding 2 new members two days ago.

Any ideas?

André R.

Tuesday 25 August 2009 7:01:32 am

You don't happen to use 4.1.0 (or was it 4.1.1) are you?
This is a known issue with these versions, so you should probably look into updating your site to 4.1.3 if your' using earlier versions of 4.1.

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

kuba kuba

Tuesday 25 August 2009 7:47:30 am

:-) I'm using 4.0.2....so I think it is time to make some update work.

Thanks for fast reply!

André R.

Tuesday 25 August 2009 8:16:27 am

If you're on 4.0.x, then your not affected by the bug I was thinking about. It probably won't hurt updating to 4.0.6 of course, but I'm not aware of such a issue on 4.0.2.

Are you able to reproduce it when you use two different browsers like cubby mentioned?
If you can't, then its almost certainly browser cache

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

kuba kuba

Wednesday 26 August 2009 11:25:32 pm

Hi!, Unfortunately I'm able to reproduce this problem on different browsers ( i tried on opera, firefox and ie ) :-/ but, I found that if log in and I have data of other user and then press "my profile" it show some "Access denied" message but it also switch to proper values, and from this point it seems to be working everything ok.

Any ideas now? My server administrator is curently on vacation, but maybe it is some www server issue?

André R.

Thursday 27 August 2009 2:33:18 am

What kind of page is this? custom or more or less pure webin/flow?
Do you have the same problem in the admin section?

My best guess is that you have a custom pagelayout or modified webin/flow pagelayout where the cache hash for the cache-block's around the header are to aggressive.
So if User A is normal user, and user B is admin user, then you will be able to edit User A's profile. But you won't be able to do that if you login with two normal users that don't have access to edit each other, hence the 'Access Denied'.

Try to reproduce it again, and instead of clearing all cache, clear one by one using the checkboxes, my guess is that 'Cache for templateblocks' will help.

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

Sebastian Born

Monday 10 January 2011 9:21:24 am

Hi there,

I have the same problem on the ez publish version, I have to support. It is ez publish 4.0.1. Clearing the cache doesn't help. The users always gets mixed up.

@kuba kuba: were you able to solve the problem?

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 04:28:21
Script start
Timing: Jan 18 2025 04:28:21
Module start 'layout'
Timing: Jan 18 2025 04:28:21
Module start 'content'
Timing: Jan 18 2025 04:28:22
Module end 'content'
Timing: Jan 18 2025 04:28:22
Script end

Main resources:

Total runtime0.9915 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.7891152.6094
Module start 'layout' 0.00840.0042 740.398439.4297
Module start 'content' 0.01260.9776 779.8281681.2813
Module end 'content' 0.99020.0013 1,461.109420.1953
Script end 0.9915  1,481.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3432160.0002
Check MTime0.00130.1266160.0001
Mysql Total
Database connection0.00070.067810.0007
Mysqli_queries0.918592.6324790.0116
Looping result0.00200.2044770.0000
Template Total0.945995.420.4730
Template load0.00170.176220.0009
Template processing0.944295.224720.4721
Template load and register function0.00020.015410.0002
states
state_id_array0.00130.126510.0013
state_identifier_array0.00150.152820.0008
Override
Cache load0.00150.1509450.0000
Sytem overhead
Fetch class attribute can translate value0.00040.044240.0001
Fetch class attribute name0.00140.1394110.0001
XML
Image XML parsing0.00150.154240.0004
class_abstraction
Instantiating content class attribute0.00000.0025130.0000
General
dbfile0.00120.1186230.0001
String conversion0.00000.001140.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs