anNA
anNA

Reputation: 320

rack.session.options - when to use which?

Is there a difference between :skip and :defer then apart from :defer tends to be used in older versions? Is there any use case for the various options and when they should be use out there?

Many thanks.

Upvotes: 1

Views: 1964

Answers (1)

Thomas Klemm
Thomas Klemm

Reputation: 10856

I hope a look at these comments in the Rack source code might help you.

# :skip will not a set a cookie in the response nor update the session state

# :defer will not set a cookie in the response but still update the session
#   state if it is used with a backend

Upvotes: 2

Related Questions