<@20> <$action_return = Auth.login(Form.id, Form.pass)> ログイン成功時 <$ifexec(Auth.ok, begin)> <$h = new.hash> <$h.id = Auth.id> <$h.sid = action_return> セッションID <$expires = if(Form.keep_login, Auth.expires, undef)> <$set_cookie('session', h, expires)> <$redirect( Myself2 . v.path_info . '?login_auth')> <$end> ログイン失敗時 <$v.action_is_main = 1> actionスケルトンをメイン代わりに <$message('ログインに失敗しました')> <$jumpclear('sub/error_message')>