Fix session handling
- Fix query syntax - Update queries for changes in F# RethinkDB drive
This commit is contained in:
@@ -179,9 +179,9 @@ let main args =
|
||||
} |> Async.AwaitTask |> Async.RunSynchronously
|
||||
let _ = builder.Services.AddSingleton<IConnection> conn
|
||||
|
||||
// let _ = builder.Services.AddDistributedRethinkDBCache (fun opts ->
|
||||
// opts.Connection <- conn)
|
||||
let _ = builder.Services.AddDistributedMemoryCache ()
|
||||
let _ = builder.Services.AddDistributedRethinkDBCache (fun opts ->
|
||||
opts.TableName <- "Session"
|
||||
opts.Connection <- conn)
|
||||
let _ = builder.Services.AddSession(fun opts ->
|
||||
opts.IdleTimeout <- TimeSpan.FromMinutes 30
|
||||
opts.Cookie.HttpOnly <- true
|
||||
|
||||
Reference in New Issue
Block a user