# OT: Tracking user

**URL:** <https://www.ruby-forum.com/t/ot-tracking-user/69518>\
**Category:** Rails\
**Created:** [September 21, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/ot-tracking-user/69518 "2006-09-21T15:11:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 21, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/ot-tracking-user/69518/1 "2006-09-21T15:11:47Z")

</div>

Just a question for opinions -  
In the past developing with php (not that it should matter) , when  
preparing data for a user I generally set the query to filter not only  
by user.id but also by user.username. To me it just seemed to add a  
little more redundancy in the event some hacker figured out a way to  
login with someone elses id.  
Is this strategy something that makes sense in Rails as well ? Or in  
any web application ?  
Of course when they log in they must with their username and password.

TIA  
Stuart

–

> **[Dark ambient](https://en.wikipedia.org/wiki/Dark_ambient)**
>
> Dark ambient (referred to as ambient industrial especially in the 1980s) is a genre of post-industrial music that features an ominous, dark droning and often gloomy, monumental or catacombal atmosphere, partially with discordant overtones. It shows similarities with ambient music, a genre that has been cited as a main influence by many dark ambient artists, both conceptually and compositionally. Although mostly electronically generated, dark ambient also includes the sampling of hand-pla 
> The te...
