I thinsk the session object will never send to client,
it stays at the server side. can some one tell me if
I’m right?
The session ID is sent to the client. The session object itself is not.
also it is a good pratice to store data inside the
session object???
This is a pretty wide open question, with the simple answer being
“store as little as possible in the session.” Generally you use it
for storing user authenication state and messages that need to be
passed between requests (i.e. the flash).
– James
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.