-
Notifications
You must be signed in to change notification settings - Fork 6
PHP session handler with node.js
gonzalo123/nodePhpSessions
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
PHP session handler with node.js var http = require('http'), url = require('url'), session = require('nodePhpSessions').SessionHandler; var sessionHandler = new session(); var server = http.createServer(function (req, res) { var parsedUrl = url.parse(req.url, true).query; res.writeHead(200, {'Content-Type': 'text/plain'}); res.end(sessionHandler.run(parsedUrl)); }); server.listen(5672, "127.0.0.1", function() { var address = server.address(); console.log("opened server on %j", address); });
About
PHP session handler with node.js
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published