<@20> 携帯チェック <$ifexec(!Is_phone && !Form.use_cookie && !Debug_phone, begin)> <$v.action_is_main = 1> <$message('携帯以外ではCookieをご利用ください')> <$jumpclear('sub/error_message', -1)> <$end> <$action_return = Auth.login(Form.id, Form.pass)> ログイン成功時 <$ifexec(Auth.ok, begin.auth_ok)> <$h = new.hash> <$h.id = Auth.id> <$h.sid = action_return> セッションID 携帯個体識別IDの削除 <$ifexec(v.phone_mode, begin)> <$Auth.set_user_info('')> <$end> <$ifexec(Form.use_cookie, begin, begin)> <$expires = if(Form.keep_login, Auth.expires, undef)> <$set_cookie('session', h, expires)> <$redirect( Myself2p . v.path_info . '?login_auth')> <$else> <$redirect( "<@Myself2>=<@Auth.id>=<@action_return>/<@v.path_info>" )> <$end> <$end.auth_ok> ログイン失敗時 <$v.action_is_main = 1> actionスケルトンをメイン代わりに <$message('ログインに失敗しました')> <$jumpclear('sub/error_message', -1)>