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?