remember me and forms

Author Message

laurent le cadet

Thursday 04 October 2007 9:58:48 am

Hi,

I'm curretly building a site where anonymous users can ask for doc. about products.
Is there a way to use the remember me feature to store the recurrent user infos (name, email...) the first time he fill a form?

And then fill the next forms...

If not, is there another option?

Regards.

laurent

Kåre Køhler Høvik

Tuesday 09 October 2007 6:09:43 am

Hi

You might be able to use the ezpreference ( http://ez.no/doc/ez_publish/technical_manual/3_10/reference/template_operators/data_and_information_extraction/ezpreference ) feature. The preference values are set per session for anonymous users, and per user for logged in users. The values are also accessible in PHP using eZPreference::value() / eZPreference::setValue()

Kåre Høvik

laurent le cadet

Tuesday 09 October 2007 6:22:08 am

Kåre,

Thanks for the tip.
The site is still a 3.9.2. and I need more than user preferences.

I managed to do something with a custom user class that anonymous user can create out of the user/register channel.

As soon as they create there own user account and user additionnal infos, they are login and redirect to the doc form already fill with there new existing datas.

In addition, there will be able to login again for next visit.

It's a kind of "ping-pong" with redirections but it seems to work.

See you.

Laurent

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 18:35:53
Script start
Timing: Jan 18 2025 18:35:53
Module start 'layout'
Timing: Jan 18 2025 18:35:53
Module start 'content'
Timing: Jan 18 2025 18:35:54
Module end 'content'
Timing: Jan 18 2025 18:35:54
Script end

Main resources:

Total runtime0.6073 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.0094 587.8906152.6094
Module start 'layout' 0.00940.0027 740.500039.4141
Module start 'content' 0.01210.5934 779.9141538.6172
Module end 'content' 0.60550.0018 1,318.531312.1875
Script end 0.6073  1,330.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.6995160.0003
Check MTime0.00200.3219160.0001
Mysql Total
Database connection0.00160.266110.0016
Mysqli_queries0.552590.9716570.0097
Looping result0.00050.0752550.0000
Template Total0.574594.620.2873
Template load0.00230.371820.0011
Template processing0.572294.223620.2861
Template load and register function0.00010.023410.0001
states
state_id_array0.00100.158210.0010
state_identifier_array0.00110.175920.0005
Override
Cache load0.00190.3150260.0001
Sytem overhead
Fetch class attribute can translate value0.00100.170820.0005
Fetch class attribute name0.00090.143350.0002
XML
Image XML parsing0.00080.135820.0004
class_abstraction
Instantiating content class attribute0.00000.002360.0000
General
dbfile0.00090.1431210.0000
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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs