express
express copied to clipboard
define session_id as a GUID
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
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.
many thanks ... apologies the document is good I shoud have read that instead of google