Saving user specific customization settings My module prints entries from the database,
I use Pager and ->limit to choose the number of records to show per each page,
instead of hardcoding limit, I'd like user to decide, between e.g. 10,20,50,100 entries per page.

I've got form with select, and the question is - how I can save and pass user defined value to ->limit.


use database - it works, but I'd like to avoid creating extra entry to database concerning such a silly setting like number of records per page
variable_set - if I'll set variable e.g. number_of_rows, change in the limit made by one user will affect rest of the users - not acceptable


maybe there's some solution concerning cookies/sessions?
The best place maybe the drupal user object's data array for tiny amounts of information, like preferences on a per user basis.

$user-&gt;data 


I'm trying to solve this myself but these links seems useful: 


drupal 6
drupal 7
http://www.braahm.be/node/7
http://randyfay.com/node/85