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