This topic contains 1 reply, has 2 voices. Last updated by Raam Dev 4 years, 9 months ago.
Topic Author | Topic |
---|---|
Posted: Wednesday Apr 11th, 2012 at 6:40 am #10544 | |
Hi, The challenge: I have a restricted download area where my users (who have paid for a subscription) can download some files. Now I want to give them links to the files – this will allow them to download the files directly and they’re not forced to log in on my website, etc. anymore. However I don’t want to give them “free” access to the files – so if their subscription expired or if the member account doesn’t exist anymore they’re also not allowed to download the files by using the direct links. At the moment I’ve only found the s2member_file_download_key() function which seems to help me with this task however I can not generate an user specific key which is valid as long as his/her membership is valid. If I use the authentication option the user needs to log in again (at least I think so) and I want to avoid this. Basically my proposal/question is if it would be possible to add a function which generates user specific api keys which helps s2members to identify the user. Edit: I searched a bit and found: http://www.s2member.com/kb/remote-user-status-custom-api/ – basicallly I think it will help me but imho it would be great if this becomes a standard/core feature. |