Akira Ho
45c1f6427f
fix / redis.getKeysConn() returns keys without Config.Prefix otherwise such keys passed into updateTTLConn() would get duplicate prefixes failing the ttl reset
...
Former-commit-id: bfcc02e5db16216d221c533fc28919fe292d6532
2018-08-16 17:42:01 +08:00
Akira Ho
4e7ca254d9
fix / redis service.TTL() returns seconds, hasExpiration, found
...
Former-commit-id: 25743848458f2a6cf3e78d5ae119d2ba2a822f79
2018-08-16 17:37:41 +08:00
Akira Ho
768dd76b62
fix / lifetime.Time not updated on expiration shift
...
Former-commit-id: 03cd1e8dcf20d6e68b70667d1f808860cb027d32
2018-08-15 14:21:22 +08:00
Gerasimos (Makis) Maropoulos
f6436f2af4
https://github.com/kataras/iris/issues/1061
...
Former-commit-id: 4324e81ea94ef917ce39005b6038a6819bb63258
2018-08-14 16:29:04 +03:00
Gerasimos (Makis) Maropoulos
f7c0cbe5cd
update deps and move one vendor to our organisation for making a new branch in order to solve this: https://github.com/kataras/iris/issues/1040 , although it's not ours problem...
...
Former-commit-id: 6013525d2aabc35461bf24871e3b36ca91004fb9
2018-07-15 16:09:03 +03:00
Gerasimos (Makis) Maropoulos
0297afdc6b
nothing crazy here, add the 'Transcoder' type explicitly to the sessions#DefaultTranscoder, relative to https://github.com/kataras/iris/issues/1033
...
Former-commit-id: 3a907d20eaf2be4b0ee21aa2be3fcc2558b7fb4e
2018-06-27 13:30:28 +03:00
Gerasimos Maropoulos
f83e125d7f
fix https://github.com/kataras/iris/issues/1020 , redis database stores the int as float64, so make that type assertion on GetInt as well
...
Former-commit-id: d29abdfe3a39fa1e046acbc5d118421a153d9c04
2018-06-03 02:47:48 +03:00
zhangpenghao-pd
5920df909e
fix cookie bug when domain is such as 'subsubdomain.subdomain.localhost.com'
...
Former-commit-id: 3a19ba09098cdc0f01299126d05c8d6d6387415b
2018-05-18 13:09:07 +08:00
Gerasimos Maropoulos
4d9909cba5
fix https://github.com/kataras/iris/issues/996
...
Former-commit-id: bcb8905faf20e08be1ef9ec203385a1a7440eebd
2018-05-09 01:28:26 +03:00
Gerasimos Maropoulos
b22151d4b7
Update to version 10.6.1 | Re-implement the BoltDB as built'n session database and more. Please read the HISTORY file for further details
...
Former-commit-id: fa68a914bec5fe4f595bdeaea84ecab6374ba643
2018-04-25 05:29:19 +03:00
Gerasimos Maropoulos
06c17bc8bb
sessions: add OnDestroy
event, relative to: https://github.com/kataras/iris/issues/969
...
Former-commit-id: de9ad83a663f44d62dbb7520595cacb21a7f694a
2018-04-22 14:13:40 +03:00
Gerasimos (Makis) Maropoulos
6862501f7f
Merge pull request #964 from Chengyumeng/fix/cookie
...
fix when destroy session can't remove cookie in subdomain
Former-commit-id: 5caf0fa5d92f53ba7b744dc1b3b7d47f688a96db
2018-04-22 14:01:48 +03:00
Gerasimos (Makis) Maropoulos
e09a7e32ed
update to use the formatCookieDomain
...
Former-commit-id: eb1f56c33dbf56bdc9d9e8df5f3f4915ff3cec42
2018-04-22 14:00:08 +03:00
Gerasimos (Makis) Maropoulos
d4c20b8e2a
update cookie.go to be aligned with quality standars
...
Former-commit-id: 54aea6a281106f60000645efc7f77ea04e72d7ac
2018-04-22 13:59:21 +03:00
Gerasimos Maropoulos
b62080c4bb
Sessions are now in full sync with the registered database, on acquire(init), set, get, delete, clear, visit, len, release(destroy)
as requested by almost everyone. https://github.com/kataras/iris/issues/969
...
Former-commit-id: 49fcdb93106a78f0a24ad3fb4d8725e35e98451a
2018-04-22 13:52:36 +03:00
Chengyumeng
bb59ad8cf2
change code duplication from update/delete cookie
...
Former-commit-id: 87980f8ca6dc61a4fc3d722b90967154a74afc91
2018-04-13 19:06:24 +08:00
Gerasimos Maropoulos
cb69df2ccf
Add a very simple usage-example for sending server side events
...
Former-commit-id: 6df287d915a772bcae3f2f98445676aba39a2bc6
2018-04-10 21:01:24 +03:00
Chengyumeng
8f32e991e8
fix when destroy session can't remove cookie in subdomain
...
Former-commit-id: 6ad05d62e03233c61a54f11c36867041ecba3f4d
2018-04-04 15:25:00 +08:00
Gerasimos Maropoulos
989cb3f045
update vendor
...
Former-commit-id: 8e7fca843e404d34fec071415191657ea554dd05
2018-04-03 13:07:23 +03:00
Gerasimos Maropoulos
66d367b255
Update to version 10.5.0 | Read HISTORY.md for more
...
Former-commit-id: 41b1947aafa258d342bbf9d22baeecc946d198a4
2018-03-24 10:39:44 +02:00
Gerasimos Maropoulos
1165b4527a
fix https://github.com/kataras/iris/issues/921
...
Former-commit-id: f8560514a7b48f83121ddd21d74b4016af4e1b67
2018-03-08 20:55:58 +02:00
Gerasimos (Makis) Maropoulos
5d62b5d428
replace boltdb/bolt to coreos/bbolt for sessions/sessiondb/boltdb
...
Former-commit-id: 0451425be0550e6a6f0c430e036452b60e393789
2018-02-07 01:06:42 +02:00
Gerasimos (Makis) Maropoulos
05334560f3
add a code snippet as a very simplistic overview and update the license dates from 2017 to 2017-2018
...
Former-commit-id: 1114ea5a38d0f8cf71c808f9603acf05419ecd4d
2017-12-31 06:45:12 +02:00
Gerasimos (Makis) Maropoulos
64da28af8b
one for today, one for tomorrow and ready :)
...
Former-commit-id: 2e0a335c84c1d9c57a61b7f3203e54f7cccd7dcc
2017-12-30 20:40:52 +02:00
Gerasimos (Makis) Maropoulos
8fd4dc2b4b
update badger sessiondb
...
Former-commit-id: 8419d561ef732d6e4d0d3bb5536db540e1dd3a9f
2017-12-27 03:40:10 +02:00
Gerasimos (Makis) Maropoulos
4ab889da5f
minor comment updates for sessions package
...
Former-commit-id: 6f73c5d83861a1f61acda07e7f78cb882320dc8c
2017-12-24 19:43:31 +02:00
Gerasimos (Makis) Maropoulos
7f423ba068
thinking a new way of displaying the README, give no readme hand-written examples, we have the _examples folder already but I should continue creating the new documentation for deep understanding and show a part of it on readme as image(?)
...
Former-commit-id: 9b6a6bceffb6ae23bf490d78cad31367ca2aa78e
2017-12-24 06:24:45 +02:00
Gerasimos (Makis) Maropoulos
91ee8287a8
Merge branch 'master' into dev
...
Former-commit-id: d338e6e846b4379199015dc4ae76677b2d8cbe53
2017-12-21 14:46:58 +02:00
Gerasimos (Makis) Maropoulos
e67621b8ec
grammar fixes(?)
...
Former-commit-id: bf2ff1df8c841643eb2ebfc8524ba869d02c99b3
2017-12-16 23:12:49 +02:00
Gerasimos (Makis) Maropoulos
68cc6641d4
Add session.Destroy (before I've added: Increment & Decrement entry helpers as well) | Improve the debug messages for the controllers
...
Former-commit-id: f5f17b05252a5032ace1e2d0fdd2304fc4004635
2017-12-16 23:09:00 +02:00
Gerasimos (Makis) Maropoulos
55dfd195e0
remove the old 'mvc' folder - examples are not changed yet - add the 'di' package inside the mvc2 package - which will be renamed to 'mvc' on the next commit - new mvc.Application and some dublications removed - The new version will be version 9 because it will contain breaking changes (not to the end-developer's controllers but to the API they register them) - get ready for 'Christmas Edition' for believers
...
Former-commit-id: c7114233dee90ee308c0a3e77ec2ad0c361094b8
2017-12-15 20:28:06 +02:00
Wing Gao
c6b12ab754
need a better way to replace an existed cookie
...
Former-commit-id: bee4a686d50e61e607e7f86c1dee93a877cd1413
2017-12-15 22:42:18 +08:00
Wing Gao
859a62bf01
fix cookie expire equals to -1 when call UpdateExpiration
...
Former-commit-id: 69107db0f9be87db2057c6d261bd896c0358bc45
2017-12-15 21:46:18 +08:00
Gerasimos (Makis) Maropoulos
ea863914dc
update the vendor json library which is used when 'WithOptimizations' passed on 'app.Run' and resolve https://github.com/kataras/iris/pull/839#issuecomment-351374343
...
Former-commit-id: ad3354717d593393a3f3aec863ec92f1f7e1c829
2017-12-13 14:37:02 +02:00
kataras
15feaf0237
Update to version 8.5.5 | Read HISTORY.md
...
Former-commit-id: dced7d472edabbab4f80c76051f13261928a8dea
2017-11-02 05:54:33 +02:00
Bill Q
4383d0c2e7
Update AUTHORS
...
Former-commit-id: 63cebcbb80ab06c4311c46edf97f6e515eef633f
2017-10-24 16:25:34 +03:00
Gerasimos (Makis) Maropoulos
99c18f5a86
fix badger session db can't built, they changed their api 3 hours ago: https://github.com/dgraph-io/badger/pull/261
...
This is the last time I update this session database, if they change their API again iris will vendor that session database and remove the `sessions/sessiondb/badger.go#NewFromDB`
Relative: https://github.com/dgraph-io/badger/pull/261
Read https://github.com/kataras/iris/blob/master/HISTORY.md#tu-10-october-2017--v851 for the previous release.
Former-commit-id: b8df7292f3b73c5ba2b595514c58fb0c85bc1ec5
2017-10-10 17:07:01 +03:00
Gerasimos (Makis) Maropoulos
4fb78bbcd9
Update sessions/sessiondb/badger to its latest version and SessionController is able to initialize itself if session manager is not provided by the caller-dev.
...
Changes:
Update the badger database using transactions, as supported from yesterday via: 06242925c2
Add a custom `OnActivate` via mvc/activator/activate_listener.go, this can be used to perform any custom actions when the app registers the supported Controllers. See mvc/session_controller.go for the excellent use case.
errors.Reporter.AddErr returns true if the error is added to the stack, otherwise false
Former-commit-id: c896a2d186a4315643f3c5fdb4325f7ee48a9e0a
2017-10-06 01:19:10 +03:00
Gerasimos (Makis) Maropoulos
cf1e580cde
Add two examples for folder structuring as requested at https://github.com/kataras/iris/issues/748
...
Former-commit-id: 27c97d005d9cbd2309587b11fc9e2bab85870502
2017-10-01 04:31:13 +03:00
Gerasimos (Makis) Maropoulos
7989a2fd72
fix https://github.com/kataras/iris/issues/771
...
Former-commit-id: 5659b6ca274bb51d7de0d079b0e87c0c513540a6
2017-09-30 23:52:32 +03:00
Gerasimos (Makis) Maropoulos
88b2343bd9
Implement "badger" kv store back-end for sessions
...
Former-commit-id: b9d85467238b5611d177b2b95ac9815cf5f8fe83
2017-09-24 14:32:16 +03:00
Gerasimos (Makis) Maropoulos
9ff124d39f
fix url host is empty when !edge on sessions subdomains persistence
...
Former-commit-id: 335a4f252e387d939b2cf9311e3acc8b35a41ce9
2017-09-21 12:31:54 +03:00
kataras
3ec5ff58c9
Fix https://github.com/kataras/iris/issues/726
...
My second mistake on redis session db because I'm not personally use redis, so I'm waiting for redis users to find these type of errors inside it, such as @sy264115809
Former-commit-id: df84348df7509c0f863f41f01de6ed6db6e8133e
2017-08-21 20:59:54 +03:00
kataras
14aa770869
minor session enhancements
...
Former-commit-id: be6503e9b12c138ccc4dbce415bf3fa301e454e7
2017-08-21 01:45:02 +03:00
kataras
996961dd86
fix redis sessiondb expiration
...
I don't know why I did add LifeTime.Second() back then, it was silly of me but didn't receive any reports except a commit comment 25 minutes ago, so we can assume that redis is almost "dead" nowdays. Thank you for the notice @sy264115809
Former-commit-id: 140caa2a42aa16b1e80905d24976c481eae24c69
2017-08-20 18:57:19 +03:00
kataras
b96476d100
Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md
...
Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
2017-08-18 17:09:18 +03:00
kataras
35620f6ecb
Update to 8.2.6 | More on Iris Controllers: optional EndRequest
. Read HISTORY.md
...
Former-commit-id: 5255ca5c4a898e2f3e7388f3af0457599e65f87f
2017-08-14 16:21:51 +03:00
hiveminded
be8295eb50
simple version checker ✌️
...
Former-commit-id: 077b9c9816211c84adda864a832acf8c1296eeaf
2017-08-09 17:12:24 +03:00
kataras
87d0f2e967
Add "Blogs" | Prev Commit: Update to 8.2.1 | LevelDB-based session database implemented, Read HISTORY.md
...
Former-commit-id: 1b7b288c1cf1d400f229794a33f3c049054f341f
2017-08-08 16:05:16 +03:00
kataras
056f9a9415
Update to 8.2.1 | LevelDB-based session database implemented, Read HISTORY.md
...
Former-commit-id: 4e341b185aedaaa9a04fdebe43b4364dec59e3c8
2017-08-08 16:00:34 +03:00