Store all users info on login
<p>Is it best to store all the users information in session cookies like this on login? Instead of using alot of querys</p>

<pre><code>$_SESSION['id'] = mysql_result($result, 0, 'id');
$_SESSION['name'] = mysql_result($result, 0, 'name');
$_SESSION['email'] = mysql_result($result, 0, 'email');
$_SESSION['ip'] = mysql_result($result, 0, 'regip');
$_SESSION['groupid'] = mysql_result($result, 0, 'group_id');
$_SESSION['style'] = mysql_result($result, 0, 'style');
</code></pre>

<p>Or maybe just store ID in session then query on all page:</p>

<pre><code>select * from users where id = $_SESSION['id']
</code></pre>
