2012-03-15 2 views

답변

32

당신은 설정할 수 있습니다 현재 사용자에 속하는 개별 쿠키에 expires 또는 maxAge :

// This user should log in again after restarting the browser 
req.session.cookie.expires = false; 

// This user won't have to log in for a year 
req.session.cookie.maxAge = 365 * 24 * 60 * 60 * 1000; 

connect session documentation를 참조하십시오.

관련 문제