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?
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.
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!
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
is working on a reply...