so I'm using Play! framework for a website project.
I'm using session to determine if the user has logged in:
session("connected", user.getId().toString());
then, I can identify who's the user when I want to easily.
I got two questions:
- is this the best-practice?
- are there vulnerabilities in my simple login system, and how to abolish them?