Forums / Install & configuration / eZPublish - is_logged_in cookie

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

eZ debug

Timing: Jan 29 2025 13:45:44
Script start
Timing: Jan 29 2025 13:45:44
Module start 'content'
Timing: Jan 29 2025 13:45:44
Module end 'content'
Timing: Jan 29 2025 13:45:44
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0469180.8359
Module start 'content' 0.00560.0054 768.8828102.0547
Module end 'content' 0.01100.0063 870.937578.6875
Script end 0.0173  949.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002112.1001120.0002
Check MTime0.00105.7691120.0001
Mysql Total
Database connection0.00094.956510.0009
Mysqli_queries0.002212.634440.0005
Looping result0.00000.074420.0000
Template Total0.006034.410.0060
Template load0.00084.343710.0008
Template processing0.005230.049210.0052
Override
Cache load0.00053.009210.0005
General
dbfile0.002916.6490100.0003
String conversion0.00000.028930.0000
Note: percentages do not add up to 100% because some accumulators overlap

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