Sessions

The Agile Web D. with Rails book has an explanation of
sessions that I am having trouble following.

Does anyone know of another good discussion of how Rails manages
sessions.

Specifically, in Firefox and and Internet Explorer … is each browser
window a session? Is each invocation of the browser a session?

If I close a browser window … can I restart the session?

Exactly what is a session and how is state information maintained across
browser requests?

On Jan 3, 4:46 am, Ralph S. [email protected] wrote:

Exactly what is a session and how is state information maintained across
browser requests?

A session is tied to a cookie (depending on your session store that
cookie either contains the session data or an identifier that allows
rails to retrieve the session from memcache/database/disk etc.) Your
questions above all boil down to what is the scope of a cookie and how
long does it last. Cookies can have expiry dates set long in the
future, but sessions are handled with cookies that are set to only
last until the browser quits (not the same as just closing a window).

Fred

Fred


Posted viahttp://www.ruby-forum.com/.

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.

Cookies can have expiry dates set long in the

future, but sessions are handled with cookies that are set to only
last until the browser quits (not the same as just closing a window).

Let’s say that I’m using Firefox and I open multiple instances of
Firefox … so do all the instances of Firefox know about all the
cookies?

When, exactly, does a cookie with no expiration date disappear?

Anyway, is there a more in-depth explanation available anywhere online
that you can recommend?

Hi Ralph,

start here:

Regards,
Nicolai

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.

On Jan 3, 12:35 pm, Ralph S. [email protected] wrote:

Cookies can have expiry dates set long in the

future, but sessions are handled with cookies that are set to only
last until the browser quits (not the same as just closing a window).

Let’s say that I’m using Firefox and I open multiple instances of
Firefox … so do all the instances of Firefox know about all the
cookies?

Try it!

Fred

When, exactly, does a cookie with no expiration date disappear?

Anyway, is there a more in-depth explanation available anywhere online
that you can recommend?


Posted viahttp://www.ruby-forum.com/.

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.