るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.007秒)
トップページ > クエリ:expires=[x] > 種類:ライブラリ[x]

別のキーワード

  1. cookie expires=
  2. cookie expires
  3. cgi expires=
  4. tuple expires=
  5. cgi expires

キーワード

検索結果

cgi (13.0)

CGI プログラムの支援ライブラリです。

...gi = CGI.new
for name, cookie in cgi.cookies
cookie.expires = Time.now + 30
end
cgi.out("cookie" => cgi.cookies){"string"}

cgi.cookies # { "name1" => cookie1, "name2" => cookie2, ... }

require "cgi"
cgi = CGI.new
cgi.cookies['name'].expires = Time.now + 30
cgi.out("cookie" => cgi.cookies['name']...

webrick/cgi (13.0)

一般の CGI 環境で webrick ライブラリのサーブレットと同じように CGI スクリプトを書くための ライブラリです。サーバが WEBrick でなくても使うことが出来ます。

...WEBrick::CGI
def do_GET(req, res)
c1 = WEBrick::Cookie.new("name1", "val1")
c1.expires = Time.now + 30
res.cookies << c1

c2 = WEBrick::Cookie.new("name2", "val2")
c2.expires = Time.now + 30
res.cookies << c2
end
end
MyCGI.new.start()

==== クライアン...