Topic
  • 2 replies
  • Latest Post - ‏2012-10-30T09:45:53Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts

Pinned topic About user session in worklight server

‏2012-10-26T07:34:24Z |
Hi everybody,
when i implement an authentication realm and create a user identity by using WL.Server.setActiveUser(user, realmName)
I'm creating a session on the Worklight Server, right?
And how can i decide how long this session has to stay alive?
If there are many users, could be session collisions? So how is the session distinguished on the server? (By a sessionID?).

Thnak you.
  • AntonAleksandrov
    AntonAleksandrov
    55 Posts

    Re: About user session in worklight server

    ‏2012-10-28T09:01:29Z  
    Hello,

    Session is managed by application server, so you don't have to worry about session collisions.
    To define the session length you can use serverSessionTimeout property in worklight.properties file.
    The default is 30 minutes.
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: About user session in worklight server

    ‏2012-10-30T09:45:53Z  
    Thank you very much.