hey, we have one function in our login interface like "remember me?" guess it's very common. I have some code as follows: ------------------ if ($c->login($username, $password) { # make cookie expire if ($c->req->param('permanent')) { $c->session_expire_key( __user => 1000000000000 ); $c->update_session_cookie( $c->make_session_cookie( $c->sessionid, expires => 1000000000000 ) ); # forever } else { $c->update_session_cookie( $c->make_session_cookie( $c->sessionid, expires => 0 ) ); } } ------------------- I bet there is something wrong. anyone can give me a hand? Thanks.
-- Fayland Lam // http://www.fayland.org/ _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/