本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #3018

session-timeout-recovery

できること

このスキルは、ログイン後の流れや長いフォームで作業を消してしまうタイムアウトを確認し、警告、進行状況の保存、サインイン後の復帰を追加します。アカウント、チェックアウト、エディターを作るチーム向けです。

使う場面

  • ✓ログイン後の流れや長いフォームで、タイムアウトによりデータが失われないか確認するようエージェントに頼むとき。
  • ✓セッションが切れた後に、利用者が入力中のフォームを失っているとき。
  • ✓セッションが終わる前に利用者に警告したいエディターやチェックアウトを作っているとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/session-timeout-recovery/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/session-timeout-recovery/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“セッションがタイムアウトすると、利用者が入力中のフォームを失います。警告を追加して、進行状況を保存してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、セッションの持続時間を確認し、期限切れの前にアクセシブルな警告を追加します。下書きや入力されたデータを保存し、コンテンツの設定や状況が許す場合は利用者がセッションを延長できるようにし、再ログイン後には同じ手順に戻します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Prevent data loss from session timeouts

Users with cognitive, motor, or vision disabilities may need longer to finish forms and authenticated tasks. Silent session expiry can erase work, force a restart, and block completion of important transactions.

Quick Reference

  • Warn users before a timeout causes lost work
  • Allow time extension for content-controlled time limits when feasible
  • Autosave or preserve entered data across logout and re-authentication
  • Keep timeout dialogs keyboard accessible and announced to assistive technology

Check

Review authenticated flows, forms, and long-running tasks for inactivity timeouts. Verify users are told the timeout duration, warned before expiry, can extend the session when allowed, and can resume after re-authenticating without losing work.

Fix

Add an accessible timeout warning, preserve drafts or submitted data across session expiry, and restore the user to the same step after re-authentication. Where the time limit is content-controlled, offer turn off, adjust, or extend behavior when feasible.

Explain

Explain how timeout warnings, extension controls, autosave, and re-authentication recovery reduce data loss and align with WCAG enough-time guidance.

Code Review

Review authenticated forms, checkout flows, editors, and long-running tasks related to Prevent data loss from session timeouts. Flag routes or components that can expire silently, discard entered data, or block recovery after re-authentication.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/session-timeout-recovery

よくある質問

誰にとって特に役立ちますか?

このスキルによると、認知、運動、視覚の障害のある人は時間が必要なことがあり、黙って期限が切れると作業が消えてしまうからです。

警告はアクセシブルである必要がありますか?

はい。このスキルによると、ダイアログはキーボードで操作でき、支援技術に読み上げられる必要があります。

時間の制限は延長できますか?

このスキルは、コンテンツによって制限時間が決まっていて実現可能な場合には、オフにする、調整する、延長するの選択肢を提供するよう勧めています。

詳細

作者による元の説明

Use when reviewing authenticated user flows or long forms. Check both client and server behavior: warning timing, dialog accessibility, autosave frequency, timeout extension, and post-login state restoration.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#3018
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル