View Single Post
  #1 (permalink)  
Old October 28th, 2013, 09:35 PM
asdf asdf is offline
Registered User
Points: 250, Level: 4
Points: 250, Level: 4 Points: 250, Level: 4 Points: 250, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: , , .
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
Unhappy 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!
Reply With Quote