More than 1 year has passed since last update.
- すでにログインしているかチェック(ログイン有効期限内のセッション有無チェック)
有効期限内ならマイページへ
有効期限外ならセッションクリアしてログアウト。ログインページへ。
セッション自体ない(未ログインユーザー)なら後続処理を続ける。
- POSTされているかチェック
- バリデーションチェック
- DB接続しパスワード取得
- パスワード照合
- セッションに「最終ログイン日時」「ログイン有効期限」「ユーザーID」を保存。
ログイン保持にチェックがあれば「ログイン有効期限」を30日にのばす。
- マイページへ
ウェブカツ!!
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin