My project is using PHP's $_SESSION
to identify users.
What I would like to know is if session variables
are secure and if it is safe to store user data in them.
For example: Lets say I wanted to add Jim's username to a file, is it safe to put his id in a session variable upon login and base my queries to retrieve his user data on that id.
Please note that I want to keep everything very secure.