As you can see in express 3.0 session id looks like
sessionID
s:fTZNjPuFIIr5sZvXLCwfR/EQ.6r41SUae3OAQokT58uypmCnajApCyFEfDaWakmlTfYY
while actuly you need a shorter version
sessions: { 'fTZNjPuFIIr5sZvXLCwfR/EQ':
'{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"}}'
} }
(the first entry 'fTZNjPuFIIr5sZvXLCwfR/EQ' is real session id)
so you need to use substring to get real session id
data.sessionID = cookies['express.sid'].substring(2, 26);
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en