express icon indicating copy to clipboard operation
express copied to clipboard

define session_id as a GUID

Open djholly123 opened this issue 12 years ago • 2 comments

Hi

Is there any way to define the session_id as a GUID. I am storing session in ms SQL 2008 and seems to make sense to me to use a GUID for the column data type rather than nvarchar(255).

... please fee free to say if this is a silly idea

thanks

djholly123 avatar Jul 31 '14 14:07 djholly123

Express session is supported via the session middleware. There is a genid option for customizing the session id generation. Please check out https://github.com/expressjs/session.

raymondfeng avatar Jul 31 '14 14:07 raymondfeng

many thanks ... apologies the document is good I shoud have read that instead of google

djholly123 avatar Jul 31 '14 15:07 djholly123