1 / 17

Ruby on Rails による

Ruby on Rails による. ショッピングカート開発. 電子商取引研究室 4 年 辻本知希. Web 上でのやりとり. ・ HTTP が使用される. ・リクエスト ( 要求 ) 、レスポンス ( 応答 ) が 1 セットとなる. ・ 1 セット間に接続、通信、切断という一連の動作がある. リクエスト. レスポンス. 切断. クライアント. サーバ. 認証必要. 認証不要. Web ページ. Web ページ. Web ページ. Web ページ. Web ページ. Web ページ. Web ページ. Web ページ. 認証. A.

gay-morrow
Download Presentation

Ruby on Rails による

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ruby on Railsによる ショッピングカート開発 電子商取引研究室 4年 辻本知希

  2. Web上でのやりとり ・HTTPが使用される ・リクエスト(要求)、レスポンス(応答)が1セットとなる ・1セット間に接続、通信、切断という一連の動作がある リクエスト レスポンス 切断 クライアント サーバ

  3. 認証必要 認証不要 Webページ Webページ Webページ Webページ Webページ Webページ Webページ Webページ 認証 A ID,PSWD ? B

  4. 認証 毎回認証をするようなアプリケーションは 快適とは言えない。 しかし認証情報は必要である。 ・cookieを利用する方法 ・セッション管理を利用する方法

  5. Webページ Webページ cookie cookie cookieを利用する方法 初 ID,PSWD 認証OK 次 認証OK

  6. Webページ 初 Cookie,URL サーバ セッション管理を利用する方法 1/2 ID,PSWD セッションID セッションID登録

  7. Webページ 初 Cookie,URL +セッションID サーバ セッション管理を利用する方法 2/2 セッションID セッションID確認 OK

  8. Cookieとセッションの比較  デメリット メリット ブラウザを閉じても残り、期間を置いた後にもデータを残すことが可能である。 情報をユーザサイドに置くのでサーバに負担をかけない。 ユーザ側に情報を置くので、ユーザに依存することが多く、改竄も可能なため、情報の信頼性に欠ける部分がある。 cookie サーバサイドで情報を保持するのでデータの改竄が困難である。ユーザ認証によるログインなど、顧客情報等を扱うようなサイトに適している。 サーバに情報を保持するためサーバに負担がかかる。 セッション

  9. DB MVCの概念 ブラウザ Controller View Model

More Related