RTC Forums
March 28, 2024, 05:22:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Need strategy advise: HTTP User Sessions rtcHTTPServer  (Read 2751 times)
craigism
RTC Expired
*
Posts: 5


« on: October 06, 2013, 10:01:59 PM »

I already read THIS and THIS.

I also know that I will be dealing with rtcDataProvider.
My App is browser based and is a HTML5 + JavaScript and makes light use of the server.
There will be under 10 users max.  Usually one or two users.

From what I understand:
I think that I will set a long session timeout (about 3 hours).
I also think that I will use a cookie or other local storage for remembering the user\session.

All my data is safely stored client side in a HTML5 App so I'm only doing this to avoid having the user "log-in" many time within the same day.

My question is should I use the built in session support or should I roll my own user management?

I have 8 rtcDataProviders (each for groups of server side functions) and I'm looking for a solution that I can put in a shared event so I can reuse the code for all the rtcDataProviders.

Related session question:  Why does a single user session seem to open up more than one session?

Thanks.


Logged
Kevin Powick
RTC Expired
*
Posts: 87


« Reply #1 on: October 06, 2013, 10:45:51 PM »

We tend to avoid using cookies because:

  • Some browsers do not support them (turned off)
  • It limits your API to only web browser clients
  • New EU laws can make using cookies a bit of a pain (disclosure and permission requirements)

--
Kevin
Logged

Linux is only free if your time is worthless
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.