Go to file
Andrew Thornton b8f62d7880 Add samesite cookie options (#16)
Add samesite cookie options

Signed-off-by: Andrew Thornton <art27@cantab.net>

Securely encrypt flash cookie to prevent javascript attack

Signed-off-by: Andrew Thornton <art27@cantab.net>

Reviewed-on: macaron/session#16
Reviewed-by: silverwind <silverwind@noreply.gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-Authored-By: Andrew Thornton <art27@cantab.net>
Co-Committed-By: Andrew Thornton <art27@cantab.net>
2020-11-12 12:27:16 +08:00
couchbase [Vendor] update & adapt new couchbase modul path (#15) 2020-11-03 09:50:45 +08:00
ledis Use github.com/unknwon/com (#9) 2019-08-21 21:14:43 +00:00
memcache update macaron (#8) 2019-08-05 01:51:36 +00:00
mysql When reading sessions that should be expired expire them (#11) 2020-09-02 20:07:03 +00:00
nodb update nodb to latest (#14) 2020-09-24 04:49:38 +00:00
postgres postgres expiry (#12) 2020-09-02 20:24:11 +00:00
redis Use github.com/unknwon/com (#9) 2019-08-21 21:14:43 +00:00
.drone.yml add drone (#3) 2019-07-31 04:40:00 +00:00
.gitignore Update github.com/go-redis/redis to v6.15.2 (#4) 2019-08-01 01:31:18 +00:00
file_test.go upgrade with macaron 2015-10-13 23:24:40 -04:00
file.go When reading sessions that should be expired expire them (#11) 2020-09-02 20:07:03 +00:00
flash_test.go update macaron (#8) 2019-08-05 01:51:36 +00:00
flash.go update macaron (#8) 2019-08-05 01:51:36 +00:00
go.mod Add samesite cookie options (#16) 2020-11-12 12:27:16 +08:00
go.sum Add samesite cookie options (#16) 2020-11-12 12:27:16 +08:00
LICENSE Initial commit 2014-07-15 19:57:55 -04:00
memory_test.go upgrade with macaron 2015-10-13 23:24:40 -04:00
memory.go When reading sessions that should be expired expire them (#11) 2020-09-02 20:07:03 +00:00
README.md update macaron (#8) 2019-08-05 01:51:36 +00:00
secret.go Add samesite cookie options (#16) 2020-11-12 12:27:16 +08:00
session_test.go update macaron (#8) 2019-08-05 01:51:36 +00:00
session.go Add samesite cookie options (#16) 2020-11-12 12:27:16 +08:00
utils.go Use github.com/unknwon/com (#9) 2019-08-21 21:14:43 +00:00

session

Middleware session provides session management for Macaron. It can use many session providers, including memory, file, Redis, Memcache, PostgreSQL, MySQL, Couchbase, Ledis and Nodb.

Installation

The minimum requirement of Go is 1.11 .

go get gitea.com/macaron/session

Getting Help

Credits

This package is a modified version of go-macaron/session.

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.