I’m using active record for sessions. I’m just noting that in terms of picking up the number of active users from the “session” table, that this works fine however it seems to MISS picking up one’s own active session for the situation when it is first access to the page (
i.e. it the request where your session gets created).
For example if I navigate to my site:
- first hit: active users list don’t include me (as it seems the session record is not yet in the sessions table)???
- subsequent hits to site: everything is then fine
Can anyone tell me how to ensure the newly created session is persisted to the database prior to the "before_filter"s running??
(i.e. I use a before filter to populate an instance variable with the list of active users, i…e from a query to the database)???