Commit Graph

66 Commits

Author SHA1 Message Date
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
0cb2351a4f Fix some invalid unlocks from the last change 2016-07-07 13:05:11 +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
0d4b0ecd43 Rocket chat is on, Add Port() to the HTTPServer, disable subdomain persistence on subdomains when 127.0.0.1/0.0.0.0
I already made a test framework integration but I will commit this when
I finish with the basic tests, we are going to final v3
2016-07-03 16:21:57 +02:00
Makis Maropoulos
c6e6c39946 Sessions from map[interface{}]interface{} to [string]interface{} - no one used object as keys so I change its type 2016-07-01 17:00:24 +03:00
Makis Maropoulos
af67a97518 Fix https://github.com/kataras/iris/issues/244 2016-07-01 01:38:29 +03:00
Makis Maropoulos
82d37c5c35 Remove unnecessary output 2016-06-30 23:19:06 +03:00
Makis Maropoulos
a5db711207 Fix/Disable session subdomain persistence on 127.0.0.1 and 0.0.0.0 2016-06-30 17:55:33 +03:00
Makis Maropoulos
781abb00ea Fix https://github.com/kataras/iris/issues/244 and some more things 2016-06-30 14:26:42 +03:00
Makis Maropoulos
49c1a595ec Remove unused context.Domain
it was added (and wrong idx) on previous commit for some of my internal
tests, this is not used anywhere so remove it.
2016-06-30 06:02:07 +03:00
Makis Maropoulos
66a66fdfa0 Fix https://github.com/kataras/iris/issues/231 2016-06-30 05:58:04 +03:00
Makis Maropoulos
f83b532835 Embrace the weekend- Update to rc.3 | Read the HISTORY.md 2016-06-24 01:34:49 +03:00
Makis Maropoulos
d837381b16 Update to 3.0.0-rc.1 - Read the HISTORY.md. Relative: #183 #184 #166 #176 #181
Read https://github.com/kataras/iris/tree/master/HISTORY.md
2016-06-14 08:45:40 +03:00
Makis Maropoulos
a337b4768d Nothing special: Linting 2016-06-03 05:11:50 +03:00
Makis Maropoulos
31cbd50fb0 Linting 2016-05-31 11:05:42 +03:00
Makis Maropoulos
c26668a489 Version 3.0.0-beta cleaned 2016-05-30 17:08:09 +03:00