Stuart Fellowes wrote:> When tracking a user is it correct to use the session user and id ?
> In other words if a user logs in and wants to display all of their
> records would one of the find conditions be session[id] ?
Hi Stuart.
If I''m not wrong, the session id is per session. That is, if the same
user comes 4 times in 4 days, you will have ... 4 differents id. So the
session[id] culd not be used in your case.
But as you say the user logs in, you answer your own question. If it
logs in, you have a loggin or id of the record of the Users database''s
table, isn''t it ? And this id is available for each different user and
identifies each one unikly.
Tony
--
Posted via http://www.ruby-forum.com/.