I am still a beginner at codeigniter and have been picking up bits and pieces from here and there.
I have built a website using codeigniter that is used by a few people to enter information about their team members and the progress of each member.
in the database, each user has the ID of his team (teams are defined in another table). whenever each user logs in, I save his team ID as a userdata session with $this->session->set_userdata.
and anytime he is inserting data or needs to display data about his team, i would get the ID from the session data and save it into a variable to be used in my code.
My question here, is to try and see if what i am doing is healthy, and secure, and to see if i can have a way to do it without using sessions.
Thank you.