# Wix Members: Help with setting limits and restrictions for logging-in users

**URL:** <https://forum.wixstudio.com/t/wix-members-help-with-setting-limits-and-restrictions-for-logging-in-users/58963>\
**Category:** Ask the community\
**Tags:** wix-members-area, code, question\
**Created:** [May 5, 2024, 1:09pm UTC](https://forum.wixstudio.com/t/wix-members-help-with-setting-limits-and-restrictions-for-logging-in-users/58963 "2024-05-05T13:09:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![valentin\_wackermedia](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/valentin_wackermedia/32/81083_2.png) [@valentin\_wackermedia](https://forum.wixstudio.com/u/valentin_wackermedia)\
**Post date:** [May 7, 2024, 12:01pm UTC](https://forum.wixstudio.com/t/wix-members-help-with-setting-limits-and-restrictions-for-logging-in-users/58963/2 "2024-05-07T12:01:50Z")

</div>

Hi Liam

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:

> [@Member Session Tracking and restriction Solution](https://forum.wixstudio.com/t/member-session-tracking-and-restriction-solution/58983):
>
> This “Made by the community”-Proof of concept should also answer this earlier post: . . With this solution you will be able to track how many Sessions any given Member of your Website has at the moment, as well as restrict the amount of sessions a Member can have. 1. You’ll need to add a custom field in your Dashboard like this: → Make sure you name it “Sessions”. Also, it has to be “activated”/ “set to visible”. It should be a “Number”-Field. . . . 2. Add this code to the events.js …

Please mark as “SOLUTION” if this solved your problem 🙂

---

_[View the full topic](https://forum.wixstudio.com/t/wix-members-help-with-setting-limits-and-restrictions-for-logging-in-users/58963)._
