Commit Graph

104 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
29bf846bd1 minor version 11.2.2 - register sessions as middleware and Context.HTML/Text like Context.Writef
Former-commit-id: 6f5f1c502fb06d739c350c3ecc891f495dc03a6e
2019-07-24 19:51:42 +03:00
Gerasimos (Makis) Maropoulos
4a937b55f2 remove the old redis (result of prev commit sync with master)
Former-commit-id: 81e8ad0ea4115640d556a1299f09f89f75fe133f
2019-07-23 19:22:10 +03:00
Gerasimos (Makis) Maropoulos
736709aa75 resolve conflicts with current master v11.1.1
Former-commit-id: 659ff392e889f3a8552d7da3d44848f1a364f7b2
2019-07-23 19:20:07 +03:00
Gerasimos (Makis) Maropoulos
4caf8d7d9b remove some examples learning content as they are exist on the wiki itself now
Former-commit-id: 8c69be5bf8ca21eb0e405ca5ad8431ceb1c2511e
2019-07-23 17:47:28 +03:00
Gerasimos (Makis) Maropoulos
ccafe67c80 nothing important here
Former-commit-id: e6c4ade12d085cb8fa4989b15fa446b75ee114b2
2019-07-15 09:58:05 +03:00
Gerasimos (Makis) Maropoulos
137c41344d Updated all dependencies one by one to go.mod - Backup and remove the vendor folder entirely and update most of the examples - next commit will contain the rest of the updated
Former-commit-id: 2791c50256c0f00d6e08a408e5cb009262c49588
2019-07-15 07:49:04 +03:00
Gerasimos (Makis) Maropoulos
33dfb42d73 add the new neffos StackExchange feature to the type aliases and shortcuts of the websocket subpackage and auto-enable debug mode on websocket MVC application when iris logger's level is set to debug
Former-commit-id: 4d8cb79d01a4172fc1ed7a9b626da0228d902b3c
2019-07-11 12:59:11 +03:00
Gerasimos (Makis) Maropoulos
b71d4032e6 replace the redis library we used with another one, no performance differences but most options for connections pooling and read/write/connect timeout (two config fields are changed as well)
relative to: https://github.com/kataras/iris/issues/1285


Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
2019-06-22 14:46:20 +03:00
Gerasimos (Makis) Maropoulos
7af5f139e0 fix typo
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
2019-06-07 21:07:08 +03:00
Gerasimos (Makis) Maropoulos
adb6fd764a extract the Delim for redis sessiondb as requested at https://github.com/kataras/iris/issues/1256 and add a mvc/regexp example and some other trivial changes
Former-commit-id: f9e09320bfe07ae10ac74f54a78272cf21d21cc7
2019-05-30 10:48:07 +03:00
Gerasimos (Makis) Maropoulos
ddec78af0a add Context.ResponseWriter.IsHijacked to report whether the underline conn is already hijacked and a lot of cleanup and minor ws stress test example improvements
Former-commit-id: 444d4f0718d5c6d7544834c5e44dafb872980238
2019-02-23 07:23:10 +02:00
Gerasimos (Makis) Maropoulos
bda36145e5 some cleanup, and remove the test 'testwebocket2' package at all; A lower-level fast websocket impl based on gobwas/ws will be published on a different repo, it is a WIP
Former-commit-id: b680974c593196ce20865ed12778929ced6afea1
2019-02-22 21:24:10 +02:00
Gerasimos (Makis) Maropoulos
6ca19e0bca sessions: give ability to the end-user to modify the cookie via context.CookieOption on Start and Update/ShiftExpiration as requested at: https://github.com/kataras/iris/issues/1186, add a StartWithPath helper as well
Former-commit-id: a9f8715b07049a5720a38c9352bb1ff781dfc04d
2019-02-16 21:03:48 +02:00
Dzmitry.Harupa
b1b5986974 session/redis: fix unused service config var. IdleTimeout witch was replaced by default values
Former-commit-id: 27752108409604cbabadf0d4457321f6e3336f9f
2018-11-27 14:55:00 +03:00
Gerasimos (Makis) Maropoulos
80952bcbd5 Add the article 'CRUD REST API in Iris (a framework for golang)' and a starter kit for Iris written by @jebzmos4
Former-commit-id: 72eb72f11086b23c1bf849eb14ad846492a84cbd
2018-11-06 04:36:05 +02:00
Gerasimos (Makis) Maropoulos
3962710d3d Version 11 released. Read https://github.com/kataras/iris/blob/master/HISTORY.md#su-21-october-2018--v1100
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
2018-10-21 19:20:05 +03:00
Gerasimos (Makis) Maropoulos
b4a30f5af5 sessions database: boltdb: add support for ShiftExpiration -> OnUpdateExpiration like redis
badger sessiondb still in progress.


Former-commit-id: 1f89a0efb753c0e02b774e0d9e48d879e987c939
2018-08-18 15:01:26 +03:00
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