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