Sessions

In the Agile WD book it states regarding sesion data- “Rails uses the
cookie-based approach”.

This can’t be entirely true can it ? Not that I’m complaining if it was
but
isn’t there some equivalent to say, PHP sessions ? Or am I wrong.

Stuart

This can’t be entirely true can it ? Not that I’m complaining if it was but isn’t there some equivalent to say, PHP sessions ? Or am I wrong.

No, no. It means Rails uses a cookie to identify your session. Just
like PHP. The actual session data is, of course, stored on the server,
not inside the cookie (which I assume is what you were thinking.)

  • Hendrik

Yes, I was thinking session data was stored in cookie. I’ve been working
through the example though and get it now.
Actually the example in the book stores the session data in a table.

Stuart