Search found 23 matches

Go to advanced search

by Bryce
Thu Nov 28, 2013 5:45 am
Forum: Issues
Topic: Set Session Storage Variable
Replies: 11
Views: 1194
 
Jump to post

Set Session Storage Variable

OK, thanks. I understand now.

by Bryce
Thu Nov 28, 2013 5:09 am
Forum: Issues
Topic: Set Session Storage Variable
Replies: 11
Views: 1194
 
Jump to post

Set Session Storage Variable

Hello. Can you expand on this a bit more please? Where/how to I "add JS field"? In the screen shot below, you can see that I have the option to add "Local Storage Variable" only... where do I add JS field? https://d2r1vs3d9006ap.cloudfront.net/s3_images/991563/sessionStorage_inli...
by Bryce
Wed Nov 27, 2013 11:52 pm
Forum: Issues
Topic: Set Session Storage Variable
Replies: 11
Views: 1194
 
Jump to post

Set Session Storage Variable

Hello. I'd like to pick up on this thread and ask a question about sessionStorage. I understand that I can set a "sessionStorage" variable using javascript ie. presessionStorage.setItem('{itemname}', '{value'})/pre However, how can I then use a sessionStorage value to map to a Requ...
by Bryce
Wed Nov 27, 2013 10:28 pm
Forum: Issues
Topic: How can I increment a value in a collection using mongoDB's $inc command ?
Replies: 16
Views: 2006
 
Jump to post

How can I increment a value in a collection using mongoDB's $inc command ?

I believe it would look like this: (note the "$inc" operator in the -d line...) precurl -X PUT \ -H "X-Appery-Database-Id: {database_id}" \ [-H "X-Appery-Session-Token: {session_token}"] \ -H "Content-Type: application/json" \ -d '{"$inc" : {...
by Bryce
Tue Nov 26, 2013 10:39 pm
Forum: Issues
Topic: How can I increment a value in a collection using mongoDB's $inc command ?
Replies: 16
Views: 2006
 
Jump to post

How can I increment a value in a collection using mongoDB's $inc command ?

Hi Katya, Thanks for the prompt, although disappointing, response. It is really annoying that, although Appery's integrated backend database is "mongoDB", it does not support many of the features that make mongoDB so great. Two native mongoDB operators that I've been told by Appery support...
by Bryce
Tue Nov 26, 2013 6:00 am
Forum: Issues
Topic: How can I increment a value in a collection using mongoDB's $inc command ?
Replies: 16
Views: 2006
 
Jump to post

How can I increment a value in a collection using mongoDB's $inc command ?

Hello, I need to increment a value in a collection by 1 each time a particular action occurs. I initially thought I would retrieve the current value from the database, store it in local storage, then use an update service to increment the value back in the collection. However, the problem with this ...
by Bryce
Wed Nov 20, 2013 11:24 pm
Forum: Issues
Topic: Does a session token remain active/valid until the session is logged out using the logout service?
Replies: 14
Views: 1355
 
Jump to post

Does a session token remain active/valid until the session is logged out using the logout service?

Just to clarify, will the session token expire after 120 minutes regardless of whether or not the user is still using the application? For example, if the user logs in, and is using the application for over 2 hours (ie. sending API requests to the database), will their session expire after 120 minut...
by Bryce
Wed Nov 20, 2013 10:05 am
Forum: Issues
Topic: How do I check if the session token is still active?
Replies: 35
Views: 5097
 
Jump to post

How do I check if the session token is still active?

Thanks Maryna, However, can you tell me how to add a query service for the Users data collection? When I click "Create new - Database Services", I only get the login, logout, signup services to import, and only the Data collections that I created are available to select for query/list/upda...
by Bryce
Wed Nov 20, 2013 6:11 am
Forum: Issues
Topic: How do I check if the session token is still active?
Replies: 35
Views: 5097
 
Jump to post

How do I check if the session token is still active?

When navigation to a certain page, I want to check if the user is logged in and their session token is still active. If the session token does not exist, or it has expired, I want the user to be re-directed to a "login" page. I have read responses to other similar questions that say that t...

Go to advanced search