top

Package sessions contains middleware for easy session management in Negroni. Based on github.com/martini-contrib/sessions

package main

import (
	"github.com/urfave/negroni"
	"github.com/goincremental/negroni-sessions"
	"net/http"
)

func main() {
n := negroni.Classic()

	store := sessions.NewCookieStore([]byte("secret123"))
	n.Use(sessions.Sessions("my_session", store))

	mux := http.NewServeMux()
	mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
		session := sessions.GetSession(req)
		session.Set("hello", "world")
	})
}

Imported by 111 package(s)

  1. bitbucket.org/plimble/ace
  2. github.com/AlexKomrakov/gohub
  3. github.com/AlexKomrakov/gohub/server
  4. github.com/GoIncremental/negroni-oauth2
  5. github.com/GoIncremental/negroni-oauth2/examples
  6. github.com/GoIncremental/negroni-sessions/cookiestore
  7. github.com/GoIncremental/negroni-sessions/dalstore
  8. github.com/GoIncremental/negroni-sessions/dynamostore
  9. github.com/GoIncremental/negroni-sessions/mongostore
  10. github.com/GoIncremental/negroni-sessions/redisstore
  11. github.com/GoIncremental/web
  12. github.com/LeKovr/Negroni-Example
  13. github.com/ShaneBurkhart/GoWebScaffold/config
  14. github.com/adamar/Negroni-Example
  15. github.com/albertchan/bijou/app
  16. github.com/albertchan/bijou/app/core
  17. github.com/alexkomrakov/gohub
  18. github.com/alexkomrakov/gohub/server
  19. github.com/anweiss/negroni-oauth2
  20. github.com/anweiss/negroni-oauth2/examples
  21. github.com/anyweez/check
  22. github.com/braindev/negroni-sessions/cookiestore
  23. github.com/braindev/negroni-sessions/dalstore
  24. github.com/braindev/negroni-sessions/dynamostore
  25. github.com/braindev/negroni-sessions/mongostore
  26. github.com/braindev/negroni-sessions/redisstore
  27. github.com/briandowns/aion
  28. github.com/briandowns/raceway
  29. github.com/chrisprice/reset-fork-to-upstream
  30. github.com/danackerson/ackerson.de-go
  31. github.com/danackerson/fritzUnlock
  32. github.com/danjac/pinbook
  33. github.com/dankeroni/go-book-db
  34. github.com/denizeren/negroni-oauth2
  35. github.com/denizeren/negroni-oauth2/examples
  36. github.com/denizeren/negroni-sessions/cookiestore
  37. github.com/denizeren/negroni-sessions/dalstore
  38. github.com/denizeren/negroni-sessions/dynamostore
  39. github.com/denizeren/negroni-sessions/mongostore
  40. github.com/denizeren/negroni-sessions/redisstore
  41. github.com/elwinar/elwinar
  42. github.com/ewhal/Store-Framework
  43. github.com/fabioberger/Recall
  44. github.com/fabioberger/Recall/controllers
  45. github.com/fabioberger/recall/controllers
  46. github.com/fourth/docprinter
  47. github.com/gangachris/refermadness/utils
  48. github.com/gangachris/refermadness/web
  49. github.com/gansidui/go-example/go-blog
  50. github.com/goincremental/negroni-oauth2
  51. github.com/goincremental/negroni-oauth2/examples
  52. github.com/goincremental/negroni-sessions/cookiestore
  53. github.com/goincremental/negroni-sessions/dalstore
  54. github.com/goincremental/negroni-sessions/dynamostore
  55. github.com/goincremental/negroni-sessions/mongostore
  56. github.com/goincremental/negroni-sessions/redisstore
  57. github.com/goincremental/web
  58. github.com/icio/negroni-oauth2
  59. github.com/icio/negroni-oauth2/examples
  60. github.com/ionDynamics/passPad/routeHandler
  61. github.com/ionDynamics/passPad/server
  62. github.com/joshansen/WineDatabase/utils
  63. github.com/joshansen/WineDatabase/web
  64. github.com/l-lin/mr-tracker-api
  65. github.com/l-lin/mr-tracker-api/web
  66. github.com/l-lin/wn-tracker-api
  67. github.com/l-lin/wn-tracker-api/web
  68. github.com/larryprice/refermadness/utils
  69. github.com/larryprice/refermadness/web
  70. github.com/lorehov/gopg
  71. github.com/lorehov/negroni-oauth2
  72. github.com/lorehov/negroni-oauth2/examples
  73. github.com/lucaspirola/simple-go-api
  74. github.com/mattbostock/negroni-oauth2
  75. github.com/mattbostock/negroni-oauth2/examples
  76. github.com/mkasner/negroni-oauth2
  77. github.com/mkasner/negroni-oauth2/examples
  78. github.com/mmanjoura/utm-admin-v0.8/service/controllers
  79. github.com/mmanjoura/utm-admin-v0.8/service/server
  80. github.com/mmanjoura/utm-admin-v0.8/service/utilities
  81. github.com/oyvindsk/go-playground/appengine-scaffolding
  82. github.com/oyvindsk/go-playground/negroni-context/oauth2
  83. github.com/pilwon/gogo/example
  84. github.com/pivotal-pez/haas-broker
  85. github.com/psmithuk/negroni-oauth2
  86. github.com/psmithuk/negroni-oauth2/examples
  87. github.com/ranveerkunal/admin
  88. github.com/rgarcia/negroni-oauth2
  89. github.com/rgarcia/negroni-oauth2/examples
  90. github.com/ruizu/negroni-sessions/cookiestore
  91. github.com/ruizu/negroni-sessions/dalstore
  92. github.com/ruizu/negroni-sessions/dynamostore
  93. github.com/ruizu/negroni-sessions/mongostore
  94. github.com/ruizu/negroni-sessions/redisstore
  95. github.com/sacheendra/negroni-oauth2
  96. github.com/sacheendra/negroni-oauth2/examples
  97. github.com/srhopkins/aion
  98. github.com/travjones/Authex
  99. github.com/travjones/authex
  100. github.com/travjones/cm_app
  101. github.com/tvtio/front
  102. github.com/vitalie/negroni-sessions/cookiestore
  103. github.com/vitalie/negroni-sessions/dalstore
  104. github.com/vitalie/negroni-sessions/dynamostore
  105. github.com/vitalie/negroni-sessions/mongostore
  106. github.com/vitalie/negroni-sessions/redisstore
  107. github.com/wagnergaldino/training/dne
  108. github.com/wagnergaldino/training/dne/controllers
  109. github.com/yujinliang/wechat
  110. go.iondynamics.net/passPad/routeHandler
  111. go.iondynamics.net/passPad/server

Imported only in test by 6 package(s)

  1. github.com/GoIncremental/negroni-sessions
  2. github.com/braindev/negroni-sessions
  3. github.com/denizeren/negroni-sessions
  4. github.com/mkasner/negroni-sessions
  5. github.com/ruizu/negroni-sessions
  6. github.com/vitalie/negroni-sessions

Imports 3 package(s)

  1. github.com/gorilla/context
  2. github.com/urfave/negroni
  3. github.com/gorilla/sessions

Test imports 1 package(s)

  1. github.com/goincremental/negroni-sessions/cookiestore