Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Ruby と Rails のざっくりとした Cookie の扱い方 / use cookie ...
Search
K H
July 30, 2024
68
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ruby と Rails のざっくりとした Cookie の扱い方 / use cookie for ruby and rails
K H
July 30, 2024
More Decks by K H
See All by K H
ファシリテーションテクニック / facilitation technic
kengohayata
0
24
SQLの実行計画とは / What is an SQL execution plan
kengohayata
0
37
RailsのQueryオブジェクトとは / What is a Query Object in Rails?
kengohayata
0
37
Ruby Silverを取得してみた / get ruby silver
kengohayata
0
35
【LT会】進数を学ぼう! / study base number
kengohayata
0
29
【LT会】睡眠テクニックを身につける / study sleep technique
kengohayata
0
78
エンジニア座談会告知
kengohayata
0
80
未経験転職エンジニア座談会資料
kengohayata
0
72
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
310
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
HDC tutorial
michielstock
2
960
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
New Earth Scene 8
popppiees
4
2.7k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Transcript
Ruby と Rails の ざっくりとした Cookie の扱い方
2024年6月27日からベータ版の提供をスタート オートレイアウトや豊富なテンプレートが使える 2025年初めごろに無料プランと有料プランが 開始予定 余談 Figma Slides でスライドを作成してみた
そもそも Cookie とは? ・ブラウザごとに保存される小さなデータファイル ・アプリケーションサーバーで Cookieを発行し、クライアントに保存する ・ログイン状態の保持やショッピングカートの保存等に使われる
Ruby の Cookie の扱い方 ・CGI::Cookie クラスで Cookie オブジェクトを扱うことができる ・Rails の
cookies メソッドが主流のため、情報量が少ない ・CGI::Cookie.new で Cookie オブジェクトを作成できる →
Rails の Cookie の扱い方 ・主に ActionDispatch::Cookies モジュールが提供する cookies メソッドを
使って Cookie を保存する ・rails_same_site_cookie、cookies_eu、jquery-cookie-rails など さまざまな gem が存在する ・ActionDispatch::Session::CookieStore を使って、セッションを Cookie に 保存できるようになる