---
# System prepended metadata

title: '[Rails4][session]Session筆記'
tags: [session, Rails4]

---

# [Rails4][session]Session筆記

###### tags: `Rails4`,`session`

參考資料:
https://stackoverflow.com/questions/2405635/how-to-empty-destroy-a-session-in-rails


```ruby
#新增session
session[:some_key]="some value"

#刪除特定session
session.delete(:some_key)

#刪除所有session
reset_session
```