1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-14 17:30:55 +00:00
Commit Graph

162 Commits

Author SHA1 Message Date
ysqi
245664010c Go Vet 2016-04-27 22:18:22 +08:00
yuyongsheng
5aa085bf41 1. remove the invalid comments.
2. allow the user to config "Enable" store/get sessionId into/from http header
3. allow the user to config "Enable" get sessionId from Url query
4. when enable sessionId in http header, check the sessionName format as CanonicalMIMRHeaderKey, then panic if not.
2016-04-21 09:57:44 +08:00
youngsterxyf
56860d1fea not just export a variable 2016-03-25 10:48:59 +08:00
youngsterxyf
3300db832b in session package, add a helpful variable SLogger to help subpackage logging information 2016-03-24 22:43:57 +08:00
iexploree
a144f117a3 remove comment 2016-03-01 13:39:36 +08:00
iexploree
477de9a3f3 fix bug: session id undecoded when destroy and sesssion memory provider push wrong 2016-03-01 10:51:47 +08:00
astaxie
fa8f6e5a53 session destroy 2016-01-18 16:11:27 +08:00
astaxie
f925bb9058 golint all the files 2016-01-18 00:18:21 +08:00
astaxie
90d1349665 fix typo 2016-01-17 23:48:17 +08:00
astaxie
391f897eb1 simplify sessionID 2016-01-11 16:49:56 +08:00
astaxie
77fa891499 update dependence 2016-01-08 15:47:13 +08:00
ysqi
58e2a7c099 fix #1473,Only update redis session if it already exist 2016-01-07 20:42:26 +08:00
ysqi
80912b6210 change get sessionID logic from cookie 2016-01-07 13:15:40 +08:00
astaxie
ac3a447479 fix the session update issues 2015-12-27 14:09:20 +08:00
Yandong Yao
da39082d4f Retrieve session identifier from cookie and query parameters 2015-12-22 10:30:44 +08:00
astaxie
4823a0f114 remove the dead code 2015-09-17 23:47:26 +08:00
astaxie
3df0fa462d golint tidb 2015-09-17 23:00:05 +08:00
astaxie
172894efe8 golint session 2015-09-12 22:53:55 +08:00
sidbusy
f55bbbdff4 allows custom the TableName of Session 2015-09-05 10:31:31 +08:00
Nikolay Kirsh
8e71d31dbe fix session table 2015-06-04 18:40:10 +05:00
astaxie
db06e954b5 fix the session memcache bug 2015-05-28 12:04:19 +08:00
astaxie
9fd7acf663 fix #1152 2015-05-25 09:10:37 +08:00
astaxie
2dca48f26e fix sesseion redis db error 2015-05-25 09:10:37 +08:00
Yongzheng Lai
322b208566 Update session.go
remove = in if statement
2015-05-25 09:10:35 +08:00
Yongzheng Lai
fd610d6777 Update session.go
move expire in line 154 to 247, because it will cause session_cookie not writen to explorer
2015-05-25 09:10:35 +08:00
astaxie
1148359570 session cookie support IE 2015-05-25 09:10:35 +08:00
astaxie
1d8afdc9c9 gofmt -s & go_vet 2015-05-25 09:10:34 +08:00
Meaglith Ma
20cc5b261e Reform the ledis_session.go 2015-03-01 12:59:34 +08:00
Meaglith Ma
7ec2a077d9 Fix the wrong parameter bug in ledis session. 2015-03-01 12:03:03 +08:00
astaxie
f988f035e5 redis provider for session and cache support select db 2015-02-16 21:56:32 +08:00
Chen Liang
29d98731c6 add sess_ledis select db config 2014-11-25 14:41:51 -08:00
astaxie
000033e2a7 update the test case 2014-11-04 22:07:38 +08:00
astaxie
fc6b9ce009 fix #620 simple the sessionID generate 2014-11-04 19:04:26 +08:00
astaxie
1822dd95ac Merge pull request #892 from dockercn/master
Add a beego session backend using LedisDB
2014-10-29 14:18:20 +08:00
Chen Liang
0bcd828d73 add session store in ledis 2014-10-26 22:56:00 -07:00
Brandon Gao
1eb9aef687 Use SETEX command to set session
In order to be compatible with older version Redis, use `SETEX` command instead of `SET x y EX 360`.
2014-10-16 20:16:17 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie
51ee1e77c2 beego: close the file when finish init 2014-08-18 14:42:17 +08:00
astaxie
2773fda883 session:change the driver from beego to bradfitz 2014-08-08 16:43:39 +08:00
astaxie
d7a5281bda session: support cookie domain 2014-08-04 16:21:06 +08:00
astaxie
1858f3073b session: fix #688 2014-07-16 23:05:38 +08:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
d2eece9a39 session: #620 make the session never read empty 2014-05-27 15:45:35 +08:00
astaxie
ef6d9b9a94 session: support memcache interface 2014-05-17 02:26:52 +08:00
astaxie
c265786251 session:support struct.
gob.Register(v)
2014-05-17 02:26:51 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
astaxie
4245521660 fix #576 2014-05-17 02:26:50 +08:00
Lin Luxiang
78991c81ab make Maxage work 2014-05-17 02:26:49 +08:00
luosangnanka
25768f0109 Update README.md
Update the json format of session for file, redis, mysql, cookie, there are errors in these json string, such as after the param `ProviderConfig` and there is a lost of `"` in the line 61 of the `gclifetime`.
2014-05-05 16:21:50 +08:00
luosangnanka
a56f67e073 Update README.md
Update the json format of session for file, redis, mysql, there are errors in these json string, after `ProviderConfig` params.
2014-05-05 16:15:49 +08:00
luosangnanka
8164f9821d Update README.md
Update the json format of session for redis, there is an error in that json string
2014-05-05 16:13:03 +08:00
astaxie
deb28dd873 fix session test case 2014-04-04 10:16:34 +08:00
slene
f4d62d3193 beego: fix dependency of cache / session sub package 2014-04-04 08:31:22 +08:00
slene
d58e9e6e12 beego: move dependency module to sub package 2014-04-03 23:41:48 +08:00
asta.xie
c7437d7590 fix Cookie for session 2014-03-26 13:51:35 +08:00
steamonimo
8d1268c0a9 session provider for postgresql
This provider is based on the mysql provider: sess_mysql.go
2014-03-25 12:45:23 +01:00
asta.xie
c921b0aa5d fix #533 change the function name 2014-03-21 14:33:11 +08:00
astaxie
217c3a2e87 Merge pull request #508 from voidd/develop
Couchbase session provider
2014-03-12 16:23:41 +08:00
Pengfei Xue
d0949b64c6 fix issue#521, return error when init redis session 2014-03-12 15:56:05 +08:00
asta.xie
b405e19f56 delete MaxAge cookielifeTime replace 2014-03-12 15:56:04 +08:00
Pengfei Xue
97b68bdd66 fix bug, can not remove session file 2014-03-12 15:56:04 +08:00
Francois
adf2a590fc Update sess_file.go
Lock required to ensure the File sessions work correct.
2014-02-27 15:34:38 +02:00
Ivan
04c2ba01bc Merge branch 'develop' of https://github.com/voidd/beego 2014-02-19 22:44:06 +04:00
Ivan
296bcab425 couchbase session provider 2014-02-19 15:54:16 +04:00
Pengfei Xue
e822642cb0 fix bug, can not remove session file 2014-02-13 18:24:05 +08:00
傅小黑
682544165f add comments for session packages, part 2 2014-01-29 18:15:09 +08:00
傅小黑
3f0ec5c0ca Merge branch 'develop' of git://github.com/astaxie/beego into develop 2014-01-29 01:06:49 +08:00
傅小黑
0e2872324f add comments for session packages, part 1 2014-01-29 01:05:56 +08:00
Pengfei Xue
34eff4cc1f bugfix, delete the sid if it's values is empty
* regenerate sid, if the old key doesn't exists, set the new one directly
2014-01-25 10:55:49 +08:00
Pengfei Xue
d014ccfb8e bug fix, session stored in redis cannot be deleted 2014-01-23 19:28:58 +08:00
Pengfei Xue
1509a6b681 fix bug, redis session doesnt work 2014-01-21 18:48:16 +08:00
Norman
dc767b65df Update SessionExist to close the db connection
close the mysql connection
2014-01-14 19:54:32 +08:00
astaxie
e34f8c4634 add cookie test 2014-01-08 23:24:31 +08:00
astaxie
aa2fef0d36 update sessionRelease
1. mysql fix last access time not update
2. mysql & redid Release when data is empty
3. add maxlifetime distinct Gclifetime
2014-01-08 20:54:20 +08:00
astaxie
481448fa90 modify session module
change a log
2014-01-05 14:48:36 +08:00
slene
d48b7e0101 #369 set maxlifetime, close conn 2013-12-14 23:33:24 +08:00
astaxie
48ad0202bf update some tips 2013-12-07 13:26:28 +08:00
astaxie
3c91360d72 dictinct system pkg and third pkg 2013-12-03 21:37:39 +08:00
astaxie
6f93b2bcbe fix _ "github.com/go-sql-driver/mysql" 2013-11-26 17:16:35 +08:00
astaxie
70dc9d7e14 update docs 2013-11-26 17:14:27 +08:00
astaxie
01d87591e4 session & orm register called twice for driver mysql 2013-11-26 17:12:25 +08:00
astaxie
a0dff9148a change third repo from other to beego 2013-11-21 22:19:19 +08:00
astaxie
bca6a33325 fix #140 2013-11-05 23:41:01 +08:00
astaxie
c8f86652a3 fix #248 2013-11-05 22:23:48 +08:00
astaxie
a443a798e3 fix #254 2013-11-05 21:59:35 +08:00
astaxie
d835b0c80f fix #235 2013-11-02 00:16:10 +08:00
astaxie
0ddde6fa9f fix #252 2013-10-29 22:03:43 +08:00
astaxie
9fc4cd8958 #238 add GetProvider 2013-10-28 23:25:30 +08:00
astaxie
742c432fd1 fix #252 2013-10-28 23:09:45 +08:00
astaxie
060631e952 fix #241#192 2013-10-28 22:19:37 +08:00
astaxie
57165f2fb5 fix #247 2013-10-28 21:44:07 +08:00
astaxie
5940fd4bbd fix build error 2013-10-21 22:08:41 +08:00
astaxie
13180c5a17 fix #249 2013-10-21 22:06:30 +08:00
astaxie
2795ac6e6b update panic 2013-10-17 21:14:00 +08:00
astaxie
02c2e16253 Strengthens the session's function 2013-09-26 18:07:00 +08:00
astaxie
2249d745d9 session support secure set 2013-09-25 23:05:53 +08:00
astaxie
115b1d03db fix #138 2013-08-09 23:41:03 +08:00
astaxie
c83d03c298 fix #117 2013-07-31 21:36:10 +08:00
astaxie
aa9cb6d052 delete session's cookie Expires 2013-06-25 23:08:47 +08:00