Stay logged in?

Permalink Browser Info Environment
Is there a way to add/enable similar functionality as what the Concrete login dialog does where it will remember you for 2 weeks, or more?

Type: Discussion
Status: Archived
pacesinf
View Replies:
MattWaters replied on at Permalink Reply
MattWaters
Hi pacesinf,

Sure, it's fairly easy to add that to an override or custom template.

This block simply posts its form data to the /login single page, so you can borrow that "remained logged in" checkbox element from the login page's form, add it to the login block's view.php inside the form tag, and everything should work:

<label class="checkbox"><?php echo $form->checkbox('uMaintainLogin', 1)?> <span><?php echo t('Remain logged in to website.')?></span></label>
MattWaters replied on at Permalink Reply
MattWaters
If you're new to overrides, check out these two how-to articles:

Custom Templates:
http://www.concrete5.org/documentation/how-tos/designers/change-how...

Overrides:
http://www.concrete5.org/documentation/how-tos/developers/change-th...
pacesinf replied on at Permalink Reply
pacesinf
Excellent! Thanks a bunch, I will take a look at this.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.