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