Access "session" from Model

Junrey,

Consider looking at the UserStamp plugin. It does exactly what you are looking for.

http://delynnberry.com/projects/userstamp/

V/r Anthony Eden

hi, looks like a great plugin. pardon me for asking this question - i really am totally raw and new to RoR. my question is:

How does this implementation work in a multi-threaded scenario (actually i don't know much about how threads work in ror) - what i mean is that would it simulate a thread local behavior that java does and each thread would have its own current_user

hope my question makes sense?!

Rails is single threaded, so it's a non-issue.

V/r Anthony