I am trying to make a tutoring website for high school students. I was wondering if theres any way to limit the number of log-ins to a particular site on Wix Members app.
For example, I don’t want students to be sharing the password to access the content. Is there a way to keep the account locked to a certain IP address? or if someone logs in on once device, it will log out on other devices? or set a certain number of times a user can log in per month?
Well thank you for asking I just coded something that should solve that problem your having. With this code you’ll be able to restrict how many Sessions a Member can have a time. In the example it’s set to 4 but you can of course just change the 4 to 1. Here’s the link to my other forum post:
Please mark as “SOLUTION” if this solved your problem
Thanks for coding this! However, this solution doesnt work for me. If a user is already a member, the code doesnt work as it designed for NEW members signing up. The system of having a number can break easily.
My friend and I tried to code an alternative solution to my problem using the CMS collection for members data, however we ran into a roadblock. I think there is a bug in the code. My friend posted in the forum here: Velo wix wix-storage-frontend session
thanks for your feedback. I get the problem, since i’m still in dev for my site I didn’t think of that. What I’d recommend is a helper-function which sets the custom field of all current users to 0 and then go from there?
This still doesnt solve the issue about session time out. If a user doesnt manually log out, the session with expire after time (possibly a couple days) of not being on the website. If the session times out, the user will be locked out @valentin_wackermedia