mysqlstore icon indicating copy to clipboard operation
mysqlstore copied to clipboard

securecookie: error - caused by: gob: decoding into local type *string, received remote type

Open plutov opened this issue 8 years ago • 2 comments

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")

plutov avatar Sep 22 '16 09:09 plutov

Also I found that this error is related to old cookie in browser.

plutov avatar Sep 22 '16 09:09 plutov

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.

Pokerkoffer avatar Sep 25 '18 20:09 Pokerkoffer