Server IP : 66.29.132.122 / Your IP : 3.22.79.103 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/thread-self/root/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[[; [ [;[ [;[