A new "session" starts when a user's login comes more than 2 days after the previous one. Number each user's sessions as session_no per distinct login date.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.