Hi Hassan, > The "session" concept doesn't imply "authentication" -- it's a Rails > built-in feature.
I didn't think that one needed an authenticated user in order to have a session. But I definitely thought one needed to have a User defined in order to have session defined. So I was surprised that "session[:symbol] = value" worked fine. The app I'm working on will be stored on a server to be accessed by perhaps 25 to 50 users on desktops connected through a LAN. Since we're on the topic, do I have to do any thing special to ensure that each user has a distinct session inaccessible to all other users? (I'll check the Rails' docs later.) I am going to add Authlogic gem tomorrow, I think, so that the app can provide secure user-login. I expect Authlogic will hook-up with the already-working session mechanism. Thanks for getting me going on the session approach. I've just got to diagram the flow of control in my app (or maybe jot down a finite state machine) to figure out where to stick my session[:show_link]=true/false expressions. Best wishes, Richard On Apr 26, 10:36 am, Hassan Schroeder <[email protected]> wrote: > On Mon, Apr 26, 2010 at 7:05 AM, RichardOnRails > > <[email protected]> wrote: > >> put it in session > > I'm ready to add some version of an authenticated user, Authlogic, I > > think. That should give me a session as my repository > > The "session" concept doesn't imply "authentication" -- it's a Rails > built-in feature. And again it's just a hash. > > Set a value: > session["somevar"] = "somevalue" > > Read it anywhere: > > session["somevar"] > > That's all there is to it. (Yes, there is a 4k limit to data stored in the > default Session::CookieStore -- shouldn't be a problem for you in > this example at least. But the API docs are your friend.) > > HTH, and good luck, > -- > Hassan Schroeder ------------------------ [email protected] > twitter: @hassan > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

