たろマーク (はてなブックマーク)
-
[ python ][ validator ]
-
[ upstart ] プロセス監視して死んでも蘇らせてくれるのか。
-
[ jquery ] 組織図を簡単に作れるっぽい。drug and drop で動かせるw
■ CGI::Session::Driver::flexmysql
ちょっと前に、CGI::Session::MySQL で、使用するテーブルを変更する。ってエントリを書いたんですが、どうも CGI::Session::Driver::flexmysql を使うともっと融通が効く使い方が出来るみたい。
$session = new CGI::Session("driver:flexmysql", undef, {
Handle => $dbh, # Or use DataSource / User / Password
Table => 'custom_table', # You can put your sessions in any table
KeyField => 'id', # and any field for your session ids
DataField => 'a_session', # and any field for your session data
AutoCreate => 1, # even if it doesn't exist yet!
});
まぁ、Table 名さえ変えられれば、そこまで融通利いてもらわなくてもいいんですが。
CGI::Session は、ver4 でそれぞれのドライバに共通の引数を持つみたいなんで、ver4 まではこれを使うか、パッチ充てちゃうかだなー。






