| Server IP : 170.10.162.208 / Your IP : 216.73.216.38 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Session/Cookie/ |
Upload File : |
U:RDoc::NormalClass[iI"Cookie:EFI"Rack::Session::Cookie;FI"Abstract::ID;Fo:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[
I"KRack::Session::Cookie provides simple cookie based session management.;FI"OBy default, the session is a Ruby Hash stored as base64 encoded marshalled;FI"Kdata set to :key (default: rack.session). The object that encodes the;FI"Lsession data is configurable and must respond to +encode+ and +decode+.;FI"9Both methods must take a string and return a string.;Fo:RDoc::Markup::BlankLine o; ;[I"KWhen the secret key is set, cookie data is checked for data integrity.;FI"MThe old secret key is also accepted and allows graceful secret rotation.;F@o; ;[I"
Example:;F@o:RDoc::Markup::Verbatim;[
I"8use Rack::Session::Cookie, :key => 'rack.session',
;FI"6 :domain => 'foo.com',
;FI". :path => '/',
;FI": :expire_after => 2592000,
;FI"8 :secret => 'change_me',
;FI"@ :old_secret => 'also_change_me'
;FI"
;FI""All parameters are optional.
;Fo; ;[I"*Example of a cookie with no encoding:;F@o;;[I".Rack::Session::Cookie.new(application, {
;FI"5 :coder => Rack::Session::Cookie::Identity.new
;FI"})
;Fo; ;[I".Example of a cookie with custom encoding:;F@o;;[I".Rack::Session::Cookie.new(application, {
;FI" :coder => Class.new {
;FI"+ def encode(str); str.reverse; end
;FI"+ def decode(str); str.reverse; end
;FI"
}.new
;FI"});F:
@fileI"lib/rack/session/cookie.rb;F;0[[
I"
coder;FI"R;F:publicF@:[ [ [[I"
class;F[[;
[[I"new;F@:[:protected[ [:private[ [I"
instance;F[[;
[ [;[ [;[