JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Nov 12, 2015 08:52
how's everyone
Nov 12, 2015 08:52
lol :D
Nov 12, 2015 08:52
@Zirak haha, i love it. havent been on hear for over 2 years and you're all still talking about me, with <3 xx
Nov 11, 2015 15:19
Session { cookie:  { path: '/', _expires: null,  originalMaxAge: null,                                                       httpOnly: true } }
Nov 11, 2015 15:19
Anyone here use sails? I have to functions in my controller, one is GET and one is POST, when i log req.session in the GET method i get the following code, but when its in the POST method, its undefined, bearing in mind im using websockets
Sep 13, 2015 08:48
Thank you
Sep 13, 2015 08:48
arrr ty
Sep 13, 2015 08:46
need 40rep for 10K :D
Sep 13, 2015 08:46
no bot anymore?
Sep 13, 2015 08:46
!!>stat
Aug 22, 2015 10:46
Morning @catgocat
Aug 20, 2015 08:34
TY
Aug 20, 2015 08:22
Good Morning
 
Nov 11, 2015 21:33
thanks for ur time
Nov 11, 2015 21:33
Solved
Nov 11, 2015 20:52
see what happens
Nov 11, 2015 20:52
ill change login to GET
Nov 11, 2015 20:51
Im not actually setting any session data, just logging
Nov 11, 2015 20:51
yes exactly
Nov 11, 2015 20:48
421["post",{"method":"post","headers":{},"data":{"email":"[email protected]","password":"sfdfsadsfa"},"url":"accounts/login"}]
Nov 11, 2015 20:48
this is what the frame shows
Nov 11, 2015 20:48
the headers in POST request is empty
Nov 11, 2015 20:48
however
Nov 11, 2015 20:47
how strange
Nov 11, 2015 20:47
and all request show up apart from the GET
Nov 11, 2015 20:47
found more info in websocket frames
Nov 11, 2015 20:47
but anyway
Nov 11, 2015 20:47
ive done that
Nov 11, 2015 20:43
but not each request
Nov 11, 2015 20:43
no the socket is
Nov 11, 2015 20:43
hmm
Nov 11, 2015 20:43
socket is not showing up in network
Nov 11, 2015 20:40
ill check headers
Nov 11, 2015 20:40
and the get is still websocket
Nov 11, 2015 20:40
io.socket.post can not
Nov 11, 2015 20:40
whereas
Nov 11, 2015 20:40
io.socket.get requests can access session fine
Nov 11, 2015 20:40
but
Nov 11, 2015 20:39
i know
Nov 11, 2015 20:38
hi
Nov 11, 2015 20:37
@KevinB default i've added my session config to Q
Nov 11, 2015 20:37
@kevinB it works with postman, so must be sails client code, this is what i'm saying
Nov 11, 2015 20:37
@KevinB ill try postman now
Nov 11, 2015 20:37
@KevinB so thats why i'm asking on here because io.socket is not my code so how would i know
Nov 11, 2015 20:37
I told you in question im using io.socket.get & io.socket.post now it automatically works properly with get, but not POST, io.socket.?
Nov 11, 2015 20:37
@KevinB but it should, you're not funny
Nov 11, 2015 20:37
@KevinB yes, but why wouldn't it be? it does with GET