I need to implement a system to limit the number of users that can concurrently use my app. I am thinking the best way to go is to count the number of sessions currently act
May be you web-server can limit maximum number of concurrent clients? (But this can affect fetching images/other static content)