ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Temporary logins

August 02, 2010 7:35am

Subscribe [3]
  • #1 / Aug 02, 2010 7:35am

    optima

    121 posts

    Is it possible to have temporary member logins that automatically expire after a set amount of time? i.e two hours after creation John Smith is reassigned from the Members member group to an Expired member group?

  • #2 / Aug 02, 2010 8:21am

    Sue Crocker

    26054 posts

    Not with anything built into EE1.x. You might want to check with Solspace to see if their User module has this functionality. Otherwise I’d suggest some sort of a cron job on your server to do this.

    Does that help?

  • #3 / Aug 02, 2010 8:27am

    optima

    121 posts

    Yes thanks. I thought a cron job might be in order, but i’ll check with Solspace.

  • #4 / Aug 02, 2010 10:46am

    Design by Front

    106 posts

    With regards to logging the user out after a set amount of time, it might be worth looking at the logmein plugin.

    You could try adding something like this on the page the user goes to right after registering/logging in.

    {exp:logmein:now username="{screen_name}" if_member_group="3" expire="300"}

    (The expiry value is in seconds) This isn’t really how the plugin is intended to work, but it might do the job for you..

    For changing the member group automatically - hopefully solspace can help 😊

    Hope this helps,
    Chuck

    edit: correcting tag

  • #5 / Aug 02, 2010 12:44pm

    Sue Crocker

    26054 posts

    Chuck, that’s a great plugin, but it doesn’t turn them into another user group automagically.

    optima, let us know what you find out. We’ll be here.

  • #6 / Aug 04, 2010 4:59am

    optima

    121 posts

    Sue, this is not currently an option with Solspace’s User module but they have added to the feature request list.

  • #7 / Aug 04, 2010 1:09pm

    Sue Crocker

    26054 posts

    So it sounds like there would be a solution down the road. I’m going to go ahead and close this, don’t hesitate to start a new thread if you need help with the cron job portion of things. (Might be a better fit in CodeShare Corner)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases