Commit Graph

186 Commits

Author SHA1 Message Date
Ming Deng 650fde66aa Revert "Merge pull request #4254 from astaxie/develop-2.0"
This reverts commit e284b0ddae, reversing
changes made to 8ef8fd2606.
2020-11-26 17:48:29 +08:00
Ming Deng b4a85c8f13 Remove files 2020-08-16 23:09:19 +08:00
Ming Deng 30eb889a91 Format code 2020-07-22 23:00:06 +08:00
jianzhiyao 678b90385b add log 2020-07-14 09:57:13 +08:00
jianzhiyao 5940ae33c2 fix `index out of range` when sid len = 1
add unit test for sess_file.go
2020-07-13 19:14:53 +08:00
Ming Deng 3ce68d6a30 Move many PR's change here since the original authors are responseless 2020-06-23 23:14:51 +08:00
Ming Deng bac2b31afe
Merge pull request #3975 from nicowaisman/patch-2
Change permission mask
2020-06-13 23:40:13 +08:00
flycash d0b7244d57 Fix ledis 2020-06-06 19:21:57 +08:00
Nico Waisman f99cbe0fa4
Change permission mask 2020-04-22 08:42:54 -07:00
BurtonQin cfdd1cd5be cache, context, session: add lock to fix inconsistent field protection 2020-02-10 21:49:46 +08:00
astaxie e5e4a3bea7
Merge pull request #3868 from holtyuzhuyanbo/fix_session_destory
fix: session destory
2020-02-07 11:49:54 +08:00
wang yan a768bf8f00 update hash algorithm for signing the cookie for xsrf token
Due to the chosen-prefix collision in SHA-1(details at https://sha-mbles.github.io/), SHA-1 hash functions should to be deprecated and SHA-2/SHA-3 should be used instead.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-06 17:31:24 +08:00
holtyuzhuyanbo 38a144c68f fix: session destory 2019-11-19 21:25:30 +08:00
astaxie bb6ca6b100
Merge pull request #3522 from saromanov/check-input-data
SessionRead: check of the length for input sid variable
2019-02-25 23:17:57 +08:00
Iskander Sharipov 67666dbe0f all: simplify boolean expressions
- !(a == b) => a != b
- !(a != b) => a == b

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-02-09 17:18:59 +03:00
Sergey d7430eb921
SessionRead: check of the length for input sid variable 2019-02-04 11:03:27 +05:00
JessonChan 97713849a1 delete stackcheck config file and ignore some staticcheck checks 2019-01-22 20:21:00 +08:00
JessonChan f237ff049a redis_sentinel test ignore 2019-01-22 19:45:32 +08:00
JessonChan 00264650b5 modify travis and redis_sentinel test 2019-01-22 19:29:53 +08:00
astaxie 5fe19d639f
Merge pull request #3456 from japettyjohn/master
Fix bug in memcache sessions
2018-12-28 22:35:11 +08:00
James Pettyjohn 1dea80d4ea Fixed error handling in memcache sessions 2018-12-27 16:20:26 -08:00
astaxie 98dfb92e17
Merge pull request #3443 from zhiquan911/develop
add GetProvider
2018-12-18 09:10:17 +08:00
郭一鸣 c8f22be675 Add redis sentinel session support (#3427)
Add Redis Sentinel session support
2018-12-17 14:47:47 +01:00
Chance f03a7d1128
add GetProvider 2018-12-13 15:37:19 +08:00
astaxie 1a66ad56c6
Merge pull request #3317 from HSoshiant/master
Lock
2018-11-14 19:24:23 +08:00
astaxie 31f2adb79d
Update session.go 2018-11-14 19:24:10 +08:00
astaxie f514ae309b
Update session.go 2018-11-14 19:23:10 +08:00
astaxie 9fdc1eaf3a
Merge pull request #3352 from SongLiangChen/develop
add sessionid prefix
2018-11-08 23:29:05 +08:00
lock 9865779f14 security question, fix arbitrary file read 2018-11-07 11:31:27 +08:00
SongLiang c8da875f83
add sessionId prefix 2018-11-05 09:51:27 +08:00
SongLiang 501d8a97f6
add sessionId prefix 2018-11-05 09:50:19 +08:00
SongLiang d3ad810f16
add sessionId prefix 2018-10-29 13:35:31 +08:00
SongLiang abc8b78065
add sessionId prefix 2018-10-29 12:18:06 +08:00
SongLiangChen 187add9b84 add sessionid prefix 2018-10-10 11:02:45 +08:00
Hossein Karimy 1097ac3682 GetProvider 2018-08-28 15:12:28 -04:00
guoshaowei 6fec0a7831 add session redis IdleTimeout config 2018-07-12 10:48:50 +08:00
astaxie c3c0adbf55
Merge pull request #3175 from mo0feng/master
Create redis_cluster.go
2018-05-28 16:48:06 +08:00
jz 04c305f273
fix use it comments
fix  use it comments
2018-05-24 15:14:56 +08:00
jz 8c8cf46b55
Create redis_cluster.go
super redis cluster
2018-05-23 17:30:13 +08:00
godcong 886fefe738 change github.com/garyburd/redigo to newest branch github.com/gomodule/redigo 2018-03-26 16:59:01 +08:00
astaxie 0fbbc67c3d
Merge pull request #2961 from zhlicen/master
Add lock while releasing session
2017-12-06 14:44:25 +08:00
HANG ZHOU ed73bdcfab
Add lock while releasing session
Solve the problem of SessionRead failure while ReleaseSession is in progress
2017-12-05 16:18:56 +08:00
astaxie b169ea4b63 Merge pull request #2896 from tinycedar/master
misc: fix typos
2017-10-17 21:22:27 +08:00
Daniel Lin 72ec4df679 Merge branch 'master' into master 2017-10-17 04:30:59 -05:00
hzlinqien b91263a254 misc: fix typos 2017-10-17 17:27:03 +08:00
astaxie 520753415f Merge pull request #2846 from hikenote/master
return template build error rather than log error
2017-09-09 06:42:02 +08:00
zhufanmao ef36ecd376 avoid some proxy not support select command 2017-08-31 20:26:32 +08:00
Ingo Oeser 3f4502990a fix bad error code
By providing a unique error code instead of a format specifier without using an error formatting function.
2017-08-03 01:52:24 +02:00
astaxie 83814a76cc hotfix: err nil 2017-05-02 12:47:15 +08:00
astaxie 44bdf1df63 ignore NilErr 2017-04-30 23:38:48 +08:00