Hi, I've implemented a log in session "thing" that essentially works by holding the model of the logged in user in a session variable, like this: session[:user] = user However let's say at this point in time, should an administrator of the system decide to revoke this user's account, the session variable for that currently logged in user is still valid, and hence he will still be able to access the system! Is it possible to modify a session variable even if it doesn't belong to the currently running process? The only other alternative for such a problem would be to poll the user database table each time to check if that user is still valid, which doesn't sound all that great.
on 2006-03-24 04:05
on 2006-03-24 06:23
Store the ID that fetch the model each request. -- -- Tom M.