Topic: Advanced Session Stuff
So, I've been thinking about trying to change the sessions to make them more useful - I want add more fields into the database sessions table. Basically:
controller, action, id <-- for tracking the page the user is currently on
ip <-- IP of the user, possibly to lock the session to that IP
possibly more, but I can't think of them at the moment.
So - does anyone have any ideas about how to do this? I looked at the session code - It's in ruby itself, and not too complex. What would be the easiest/best way to implement this. I'm up for rewriting some ruby code, but I don't think it would be very easy - is the request and params object available there?
Last edited by drewt (2007-04-12 23:31:52)