Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session #5

Closed
delchev opened this issue May 5, 2016 · 3 comments
Closed

session #5

delchev opened this issue May 5, 2016 · 3 comments

Comments

@delchev
Copy link
Contributor

delchev commented May 5, 2016

API for 'session'

@delchev
Copy link
Contributor Author

delchev commented May 5, 2016

Usage

/* globals $ */
/* eslint-env node, dirigible */

var session = require('net/http/session');
var response = require('net/http/response');

session.setAttribute("attr1", "value1");
var attr = session.getAttribute("attr1");

response.println("[Attribute]: " + attr);
response.flush();
response.close();

@delchev
Copy link
Contributor Author

delchev commented May 5, 2016

Methods

getAttribute(name)
getAttributeNames()
getCreationTime()
getId()
getLastAccessedTime()
getMaxInactiveInterval()
invalidate()
removeAttribute(name)
setAttribute(name, value)
setMaxInactiveInterval(interval)

ThuF added a commit that referenced this issue May 5, 2016
@delchev delchev added the prio2 label May 5, 2016
ThuF added a commit that referenced this issue May 5, 2016
ThuF added a commit that referenced this issue May 5, 2016
ThuF added a commit that referenced this issue May 5, 2016
ThuF added a commit that referenced this issue May 5, 2016
ThuF added a commit that referenced this issue May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants