Module for reading Cookie

Author Message

John van der Boom

Friday 25 July 2003 2:35:38 am

I had lately this problem with EZp check: Reading Cookies in ez modules. http://www.ez.no/developer/ez_publish_3/forum/setup_design/redaing_cookies

Now I want to make(try to) a module with eZp that give me the possibilty to read cookies, cause I really need this functionality. Is this possible?

If it's possible I'll try to make a module. I have not much exp. with php, but I've porgrammed alot in other languages, so I'll give it a try.

I think it's a nice to way to learn eZ and php a little bit more.

Tony Wood

Tuesday 29 July 2003 4:12:52 am

Hi John,

Try writing an operator, if all you want to do is read a cookie then you can write an operator to get the cookie and pass the result to the front end template.
Take a look at eZRSS as an examples or read http://ez.no/developer/ez_publish_3/documentation/development/kernel/custom_template_operators

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

John van der Boom

Tuesday 29 July 2003 6:05:36 am

Thank you Tony.

I'll try

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 19:20:56
Script start
Timing: Jan 18 2025 19:20:56
Module start 'layout'
Timing: Jan 18 2025 19:20:56
Module start 'content'
Timing: Jan 18 2025 19:20:57
Module end 'content'
Timing: Jan 18 2025 19:20:57
Script end

Main resources:

Total runtime0.8619 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.0313152.6250
Module start 'layout' 0.00510.0033 741.656339.4453
Module start 'content' 0.00840.8520 781.1016533.2422
Module end 'content' 0.86040.0015 1,314.343812.1641
Script end 0.8619  1,326.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3713160.0002
Check MTime0.00150.1708160.0001
Mysql Total
Database connection0.00060.073210.0006
Mysqli_queries0.816394.7113570.0143
Looping result0.00050.0616550.0000
Template Total0.827296.020.4136
Template load0.00240.273120.0012
Template processing0.824995.702320.4124
Template load and register function0.00020.021810.0002
states
state_id_array0.00190.217910.0019
state_identifier_array0.00120.144120.0006
Override
Cache load0.00190.2230160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.076220.0003
Fetch class attribute name0.00100.113740.0002
XML
Image XML parsing0.00050.063420.0003
class_abstraction
Instantiating content class attribute0.00000.004540.0000
General
dbfile0.00070.0807160.0000
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs