Commit Graph

10 Commits

Author SHA1 Message Date
Gerasimos Maropoulos
c6f5406c3b Better gzip managment, align with https://github.com/kataras/iris/issues/361 . OnError on Parties: https://github.com/kataras/iris/issues/35 2016-08-14 05:44:36 +03:00
Makis Maropoulos
077984bd60 🌈 sessions were re-written, update to 4.0.0-alpha.2, read HISTORY.md
**Sessions were re-written **

- Developers can use more than one 'session database', at the same time,
to store the sessions
- Easy to develop a custom session database (only two functions are
required (Load & Update)), [learn
more](https://github.com/iris-contrib/sessiondb/blob/master/redis/database.go)
- Session databases are located
[here](https://github.com/iris-contrib/sessiondb), contributions are
welcome
- The only frontend deleted 'thing' is the: **config.Sessions.Provider**
- No need to register a database, the sessions works out-of-the-box
- No frontend/API changes except the
`context.Session().Set/Delete/Clear`, they doesn't return errors
anymore, btw they (errors) were always nil :)
- Examples (master branch) were updated.

```sh
$ go get github.com/iris-contrib/sessiondb/$DATABASE
```

```go
db := $DATABASE.New(configurationHere{})
iris.UseSessionDB(db)
```

> Note: Book is not updated yet, examples are up-to-date as always.
2016-07-15 20:50:36 +03:00
Makis Maropoulos
40ab94a9fc Fix tests 2016-07-08 22:11:39 +02:00
Makis Maropoulos
68111f57d1 Replace fasthttp's with correct remove cookie code... fixes flash messages and sessions on some cases 2016-07-08 21:33:41 +02:00
Makis Maropoulos
981fef9ecf add test for cookie set/get/remove to help this guy https://github.com/kataras/iris/issues/270 2016-07-07 16:02:15 +02:00
Makis Maropoulos
7723c22ef6 Ok finish the important staff, the other are already tested hundreds of times 2016-07-07 01:36:38 +02:00
Makis Maropoulos
f5f7f22245 Ok finish the context's tests 2016-07-07 01:26:05 +02:00
Makis Maropoulos
728cba60f7 Add test for RedirectTo and fix the wrong-way-to-do-test-with-map-which-keys-some-times-change-order-lol 2016-07-07 01:20:04 +02:00
Makis Maropoulos
01914b6c37 Fasthttp seems have little bug with headers, so make a VisitAllCookies function and GetFlashes completed- tests added also 2016-07-07 00:25:50 +02:00
Makis Maropoulos
2cc75817b7 Add support for more than one listening server to one station, virtual and no virtual 2016-07-06 20:24:34 +02:00