DO NOT USE! This tag is being burninated: https://meta.stackoverflow.com/q/418968/6296561
Questions tagged [connect]
800 questions
3
votes
1 answer
Accessing res.locals after app.router
I am creating the middleware to be called after app.router and I need to access the data that was stored in res.locals object by the route middleware and route handler.
//...
app.use(app.router);
app.use(myMiddleware);
//...
app.get('/',…

esp
- 7,314
- 6
- 49
- 79
3
votes
2 answers
Android - connect to wifi programmatically
I would like to connect to WiFi network programmatically.
Here is my code:
wifiManager = (WifiManager) this.getSystemService(Context.WIFI_SERVICE);
wifiManager.setWifiEnabled(true);
WifiConfiguration config = new WifiConfiguration();
config.SSID =…

Tomáš Černý
- 41
- 1
- 3
3
votes
1 answer
Very weird spontaneous disconnect for a System.Net socket
I have a System.Net socket that's spontaneously disconnecting, especially if I query its state TWICE in the Visual Studio 2010 debugger.
It's instantiated like this:
_TCPConn = new Socket(AddressFamily.InterNetwork, SocketType.Stream,…

user316117
- 7,971
- 20
- 83
- 158
3
votes
1 answer
Connect's Memory Store - working around it's production limitations for Node Webservers
I have read a few assorted comments on how installing a persistant storage solution for sessions ( for a Node/Express setup) seems like a bit of overkill for small scale websites, (redis, mongo, ect.).
Besides persistance, I could only find…

Niall Byrne
- 2,448
- 1
- 17
- 18
3
votes
1 answer
Express connect session expiry not working as expected
In a web app am developing using express.js am having a problem expiring sessions when a user has not been active for more than 10 minutes. Am using connect-couchdb as the session store.
I tried setting the req.session.cookie.maxAge = 600000. But…

Manokaran K
- 320
- 1
- 2
- 11
3
votes
2 answers
nodejs: where session stores? what is connect-mongo?
i m creating application, using nodejs (0.8.15), express (>3.0) framework, socket.io and mongodb for register users.
1) Everyone knows that it is easy to create simple chat using only socket.io, without mongodb (or other). So, in this case where…

sirjay
- 1,767
- 3
- 32
- 52
3
votes
1 answer
force connect to work
I run the following line in bash, on a VM running red hat 5:
for i in {1..100000};
do telnet 10.10.10.105 41941;
done
At some point, telnet connects to the port even though there is no one listening on it. It seems o be connecting…

user1783445
- 31
- 2
3
votes
1 answer
Why does my session cookie expire?
In node I have a https server, and I use sessions with a maxage value, here's the code:
app.use(express.cookieParser());
app.use(express.session({
secret: 'secret stuff',
store: sessionStore,
cookie: {
secure: true,
maxAge: 60 * 1000…

balazs
- 5,698
- 7
- 37
- 45
3
votes
2 answers
Persona (BrowserId) authentication never succeeds in Express 3.0 (with passport-browserid)
I tried writing a skeleton app that authenticates using Mozilla Persona using this tutorial and the passport documentation and the login always fails - I am not sure what I am doing wrong as I don't see any logs from passport. This is my front-end…

pathikrit
- 32,469
- 37
- 142
- 221
3
votes
2 answers
nodejs / winston logging -- I want several log files, one with all requests, one with only POST's, another GET's (details inside)
The code below logs all requests to two files, one of which is JSON formatted. This has the side effect of logging each request to the console twice. Why is that? I am sure I'm using Winston incorrectly, any feedback would be appreciated.
var…

sente
- 2,327
- 2
- 18
- 24
3
votes
3 answers
Qt - Connected but doesn't work
I have problem with one class in my project, after click appears new window with QTableWidget and QPushButton, after clicking the button I should have "test" on stdout, but nothing shows, here are parts of this code:
Header:
class ClientsSelector :…

agilob
- 6,082
- 3
- 33
- 49
3
votes
1 answer
Express.js 3 creates new sessions with each XHR request from Backbone.js
I have a Backbone app that queries my Express server with a un/pw, authenticates, then sends the account info (from MongoDB) along with the new sessionID back to the client. When i need more data, i attach the session id to the .fetch() options.…

Jonathan Drake
- 270
- 1
- 4
- 13
3
votes
1 answer
Express.js sessions activated on a subset of routes
I'm working with expressjs and want to authenticate users for a login using sessions. The site/app should on one hand allow the user to browse and investigate different products and information in a stateless webpage allowing caching of these pages,…

torgebo
- 31
- 3
3
votes
1 answer
how can i avoid race conditions in node.js when i'm manipulating the session via socket.io?
i'm using this authorization function in my socket.io setup:
io.set('authorization', function (data, accept) {
if (!data.headers.cookie) {
return accept('Session cookie required.', false);
}
data.cookie =…

Ezeke
- 952
- 7
- 19
2
votes
2 answers
Expressjs with Connect basic auth won't set request user
I'm using express and adding in basic authentication via the connect middleware. I'm trying to use the async version and it claims the user property will be set on the request object when calling using the async version.
If I call the proper fn(err,…

Patrick Kafka
- 9,795
- 3
- 29
- 44