Home/Support/Support Forum/server sessions
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

server sessions

0 votes
Hi All,

Is it possible with the AWS app to maintain server session variables linked to an active client - server session? I would like to use this functionality to keep track of multiple user sessions / logins.

TIA,

Victor
asked Nov 16, 2009 in NET+OS by vjoomens New to the Community (2 points)
recategorized Dec 10, 2013 by tuxembb

Please log in or register to answer this question.

3 Answers

0 votes
Build the default example (File -> New -> NET+OS Project), and check out the /web/session.c file. I believe this shows what you're trying to do.
answered Nov 17, 2009 by charliek Veteran of the Digi Community (408 points)
0 votes
> Build the default example (File -> New -> NET+OS
> Project), and check out the /web/session.c file. I
> believe this shows what you're trying to do.

Not really - it gives some clues, but only supports a single session ATM
answered Nov 17, 2009 by steved1 Community Contributor (85 points)
0 votes
Doh!!

This sucks. Ok, here's my workaround. This is for all you guys struggling with the same issue.

First, make a login call to the digi. The digi responds with a session id on success.

Store the session id in a javascript variable. Now create a heartbeat which calls on the digi every ... seconds, with the session id as parameter. The digi can now monitor the heartbeat and clear the specific session on timeout.

The client has to send the session id parameter on every call to the digi!!!

Good luck.
answered Nov 18, 2009 by vjoomens New to the Community (2 points)
...