Share » Forums » Install & configuration » Remember me

Remember me

Remember me

Monday 02 February 2009 1:06:50 am - 9 replies

Author Message

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.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu