Skip to content

Commit

Permalink
updated session to survive a year
Browse files Browse the repository at this point in the history
  • Loading branch information
noam-honig committed Jul 29, 2023
1 parent 2749e51 commit e29fde7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/server-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare module 'remult' {
export async function initRequest(req: Request) {
remult.context.session = req.session!
remult.user = req.session!['user']
req.sessionOptions.maxAge = 365 * 86400000
}

export function setSessionUser(user: UserInfo): UserInfo {
Expand Down

0 comments on commit e29fde7

Please sign in to comment.