mysqlstore
mysqlstore copied to clipboard
securecookie: error - caused by: gob: decoding into local type *string, received remote type
I have this error when trying to use MySQL store.
store, _ := mysqlstore.NewMySQLStore(common.Config.MysqlAddr, "sessions", "/", 86400*7, []byte("AES-128"))
session, err := Store.Get(r, "auth")
Also I found that this error is related to old cookie in browser.
Also I found that this error is related to old cookie in browser.
This happened to me as well. I switched the store to FilesystemStore and there was already a cookie created by CookieStore present. Deleting this cookie solved the problem.