Remember me

Author Message

Przemek Niemczuk

Monday 02 February 2009 1:06:50 am

Is there the possibility of such a configuration eZpublish that there was no need to log in each time you restart the browser. Forum IPB has the option: Remember me - http://www.forum.treningbiegacza.pl//index.php?act=Login&CODE=00. You can not run under eZpublish?

primo

Paul Forsyth

Monday 02 February 2009 7:04:36 am

Hi Przemek,

Yes, this feature is standard in eZ Publish.

You can see this in action in the administration home page.

If you look at the corresponding admin template 'design/admin/templates/user/login.tpl' you can see for yourself the form values needed in your own script to use this feature.

Paul

Przemek Niemczuk

Thursday 05 February 2009 2:35:38 pm


I have the code in the file you provided, but in spite of the fact that he is not seeing it on the results page:

{if and( ezini_hasvariable( 'Session', 'RememberMeTimeout' ), ezini( 'Session', 'RememberMeTimeout' ) )}
    <div class="block">
        <input type="checkbox" tabindex="1" name="Cookie" id="id3" /><label for="id3" style="display:inline;">{"Remember me"|i18n("design/admin/user/login")}</label>
    </div>
{/if}

or something I do not understand: http://treningbiegacza.pl/index.php/ezwebin_site_admin/

primo

Łukasz Serwatka

Thursday 05 February 2009 2:42:33 pm

Hi,

That piece of code will be execute only when site.ini.[Session].RememberMeTimeout setting is set. See settings/site.ini for more details. In your case you have to configure it in settings/siteaccess/ezwebin_site_admin/site.ini.append.php, simply put

[Session]
RememberMeTimeout=3600

Tune RememberMeTimeout value for your needs.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Przemek Niemczuk

Thursday 05 February 2009 2:48:08 pm

Now I have this setting - no value. What should I set?

primo

Łukasz Serwatka

Thursday 05 February 2009 2:49:42 pm

Number of seconds a session cookie will last.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Przemek Niemczuk

Thursday 05 February 2009 2:56:34 pm

It is possible to say for the month?

primo

Norbert Wagner

Thursday 19 February 2009 5:32:47 am

Is it possible to set this to unlimited? 0?
Thanks,
Norbert

Yannick Komotir

Friday 20 February 2009 4:31:32 am

 

     It is possible to say for the month? 
 

yes, the number is in second

for 1 month = 30 x 24 x 60 x 60 = 259200

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

*- pike

Wednesday 23 September 2009 3:28:59 am

Is it possible to set this to unlimited? 0?
Thanks,
*-pike

---------------
The class eZContentObjectTreeNode does.

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 29 2025 23:52:25
Script start
Timing: Jan 29 2025 23:52:25
Module start 'layout'
Timing: Jan 29 2025 23:52:25
Module start 'content'
Timing: Jan 29 2025 23:52:26
Module end 'content'
Timing: Jan 29 2025 23:52:26
Script end

Main resources:

Total runtime0.9580 sec
Peak memory usage4,096.0000 KB
Database Queries86

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1250151.2109
Module start 'layout' 0.00480.0024 739.335936.6484
Module start 'content' 0.00720.9500 775.9844696.9297
Module end 'content' 0.95720.0008 1,472.914119.8672
Script end 0.9580  1,492.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3747160.0002
Check MTime0.00150.1568160.0001
Mysql Total
Database connection0.00060.062610.0006
Mysqli_queries0.906694.6343860.0105
Looping result0.00060.0622840.0000
Template Total0.928796.920.4644
Template load0.00210.223920.0011
Template processing0.926696.714920.4633
Template load and register function0.00020.017510.0002
states
state_id_array0.00140.149410.0014
state_identifier_array0.00170.172520.0008
Override
Cache load0.00180.1892420.0000
Sytem overhead
Fetch class attribute can translate value0.00040.046360.0001
Fetch class attribute name0.00080.0809120.0001
XML
Image XML parsing0.00280.289860.0005
class_abstraction
Instantiating content class attribute0.00000.0021130.0000
General
dbfile0.00320.3382240.0001
String conversion0.00000.001040.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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs