p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional Node.js: Building Javascript Based Scalable Software (http://p2p.wrox.com/book-professional-node-js-building-javascript-based-scalable-software-706/)
-   -   chapter 21 sessions code does not work (http://p2p.wrox.com/book-professional-node-js-building-javascript-based-scalable-software/91295-chapter-21-sessions-code-does-not-work.html)

asdf October 28th, 2013 09:35 PM

chapter 21 sessions code does not work
 
Hi,

Chapter 21 code does not work:
The logout button does not work to log out and it never displays the user session id on any of the screens. The user/password form works, the user can create profiles but the session code does not work. It does get a cookie but the session code fails in some way without any error message so a lot of the functionality it should have does not work. I have tried everything I can think of including downloading the sample code but even using that 100%, the downloaded code stills fails in the same way. I am using all the correct versions of software per the book. Below is my package.json

{
"name": "application-name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "2.5.11",
"jade": "<= 1.2.5",
"async": "0.1.22",
"request": "2.10.0"
}
}

Please respond...working sample code would be great, I really need to learn sessions that is why I got the book. Thanks in advance!


All times are GMT -4. The time now is 04:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.