Changeset 24896
- Timestamp:
- 11/26/08 09:55:39 (4 years ago)
- Location:
- lang/perl/MENTA/trunk
- Files:
-
- 3 modified
-
TODO (modified) (1 diff)
-
app/controller/session.mt (modified) (1 diff)
-
plugins/session.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/MENTA/trunk/TODO
r24865 r24896 17 17 - モバイルのときのセッション管理 18 18 - やるとすれば。。。 19 - bbs 作る20 19 - bookmark つくる 21 20 - wiki つくる 21 - tinyurl 22 - see http://naoya.dyndns.org/~naoya/mt/archives/001682.html 22 23 -
lang/perl/MENTA/trunk/app/controller/session.mt
r24852 r24896 3 3 <h1>自分専用カウンターです</h1> 4 4 5 セッションID: <?= session_session_id() ?><br /> 6 7 カウンタ: <?= session_set("COUNTER", (session_get("COUNTER")||0)+1) ?> 5 <table> 6 <tr><td>セッションID</td><td><?= session_session_id() ?></td></tr> 7 <tr><td>カウンタ</td><td><?= session_set("COUNTER", (session_get("COUNTER")||0)+1) ?></td></tr> 8 <tr><td>セッション状態管理クラス</td><td><?= session_state_class() ?></td></tr> 9 <tr><td>セッション保存クラス</td><td><?= session_store_class() ?></td></tr> 10 </table> 8 11 9 12 ?= render('footer.mt') -
lang/perl/MENTA/trunk/plugins/session.pl
r24830 r24896 3 3 use HTTP::Session; 4 4 use HTTP::Session::Store::DBM; 5 use HTTP::Session::State::Cookie;6 7 $HTTP::Session::State::Cookie::COOKIE_CLASS = 'CGI::Simple::Cookie';8 5 9 6 sub _postrun { … … 16 13 sub _session { 17 14 $MENTA::STASH->{'plugin::session'} ||= sub { 15 MENTA::Util::require_once 'HTTP/Session/State/Cookie.pm'; 16 $HTTP::Session::State::Cookie::COOKIE_CLASS = 'CGI::Simple::Cookie'; 18 17 my $session = HTTP::Session->new( 19 18 store => HTTP::Session::Store::DBM->new( … … 34 33 } 35 34 35 sub session_state_class { ref _session->state() } 36 sub session_store_class { ref _session->store() } 37 36 38 { 37 39 no strict 'refs';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)