hello every one :
i get this error while putting value in session
C:\Program
Files\nodejs\chatingLoginExp\node_modules\express\node_modules\connect\lib\middleware\session.js:262
var secured = cookie.secure && (req.connection.encrypted ||
req.connec
^
TypeError: Cannot read property 'secure' of undefined
at ServerResponse.res.writeHead (C:\Program
Files\nodejs\chatingLoginExp\node_modules\express\node_modules\connect\lib\middleware\session.js:262:29)
at ServerResponse._implicitHeader (http.js:932:8)
at ServerResponse.OutgoingMessage.write (http.js:705:10)
at ondata (stream.js:38:26)
at EventEmitter.emit (events.js:96:17)
at ReadStream._emitData (fs.js:1365:10)
at afterRead (fs.js:1347:10)
at Object.wrapper [as oncomplete] (fs.js:362:17)
configuring like this
app.use(express.cookieParser());
app.use(express.session({ secret: "secret" }));
and putting value in session like
req.session = {"myName":chatUser};
can any one tell me what im doing wrong. Thanks
--
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