title: What data should I store in a PHP session?
body: <p>I am building a small application that users can log into using CodeIgniter</p>
  
  <p>My question is, when a user logs in, is it advisable to store a lot of the users personal information in the session (like their user id, name, email and telephone number). Or should I try leave personal information out and just keep their user id in the session only?</p>
  
  <p>I don't want to have to make database queries constantly to get some or the users basic information.</p>
  
  <p><em><strong>Update</em></strong></p>
  
  <p>I will be using a database to store all their information, I just want to know when they log in, is it advisable to keep their data stored in a session as well as the database?</p>
  
  <p>Thanks</p>