eZPublish - is_logged_in cookie

Author Message

Maxime Thomas

Friday 17 December 2010 3:12:56 am

Hi,

Does anynone get some troubles with the is_logged_in cookie ?

On our platform, everydays for one week, we have the following bug :

After being authenticated, the user click on a link and he is disconnected systematically from eZ.

After inscpection, the is_logged_in cookie is unset during the redirection that occurs between /user/login and the called page.

I've put some debug in the index.php that handle this (and related to http://issues.ez.no/IssueView.php?Id=14828&activeItem=4) but it still occurs.

Our webhosting company told us it is eZPublish which is sending a bad header :

Set-Cookie: <span class="search-match">is_logged_in</span>=deleted; expires=Mon, 17-Dec-2010 10:23:19 GMT; path=/

The debug is never written so I don't why this occurs.

Any idea ?

Max

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Gaetano Giunta

Friday 17 December 2010 7:46:25 am

Does set set-cookie header really include the text '<span class="search-match">' or is it just part of the forum post text?

Principal Consultant International Business
Member of the Community Project Board

Maxime Thomas

Friday 17 December 2010 8:34:08 am

No, of course.

The right one is :

Set-Cookie: is_logged_in=deleted; expires=Mon, 17-Dec-2010 10:23:19 GMT; path=/

Any idea by the way ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Maxime Thomas

Friday 17 December 2010 8:38:24 am

Ah, I think it's related to this one :

http://issues.ez.no/IssueView.php?Id=16549&activeItem=2

Effectively the cookie does not need to be sent at each page. No ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Maxime Thomas

Wednesday 22 December 2010 2:12:34 am

Finally, I've found it.

A login handler was enabled always returning false, so I was connected then disconnected.

So the rule is to always check the login handler list and its return.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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 02:14:44
Script start
Timing: Jan 18 2025 02:14:44
Module start 'layout'
Timing: Jan 18 2025 02:14:44
Module start 'content'
Timing: Jan 18 2025 02:14:45
Module end 'content'
Timing: Jan 18 2025 02:14:45
Script end

Main resources:

Total runtime0.7838 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0313152.6406
Module start 'layout' 0.00530.0024 740.671939.4844
Module start 'content' 0.00770.7749 780.1563576.9219
Module end 'content' 0.78260.0012 1,357.078116.1484
Script end 0.7838  1,373.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4051160.0002
Check MTime0.00130.1600160.0001
Mysql Total
Database connection0.00070.091510.0007
Mysqli_queries0.726092.6139650.0112
Looping result0.00060.0707630.0000
Template Total0.758096.720.3790
Template load0.00180.224720.0009
Template processing0.756296.478920.3781
Template load and register function0.00010.011410.0001
states
state_id_array0.00070.095110.0007
state_identifier_array0.00090.112720.0004
Override
Cache load0.00150.1925360.0000
Sytem overhead
Fetch class attribute can translate value0.00060.081620.0003
Fetch class attribute name0.00110.145370.0002
XML
Image XML parsing0.00100.125320.0005
class_abstraction
Instantiating content class attribute0.00000.0024100.0000
General
dbfile0.00090.1150220.0000
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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs