Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matthew Wood 6 posts 26 karma points
    Jul 19, 2014 @ 22:20
    Matthew Wood
    0

    Make a member part of a member group for a specific amount of time

    When a member clicks a certain link, I would like to make them part of a group for a specific amount of time (ie 30 minutes). I know I could create a SQL job on the Membership tables that does this, but is there any solution besides that?

    Cheers!

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Jul 19, 2014 @ 22:34
    Andy Butland
    0

    When the link is clicked, this could go via a custom controller action or some code in the view of the linked page to call the membership APIs to set the member as part of the group.  I'm not sure if there's any date/time recorded when this association is made within Umbraco though, if not, you'd need to record this somewhere else, probably in a custom database table.

    You could then look at setting up scheduled task, running say every 5 minutes - that checks this custom table and again uses the membership API to remove the member from a group.

    Appreciate that's very top-lone, but I think that's how I would approach it.

    Andy

Please Sign in or register to post replies

Write your reply to:

Draft