Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Bijian Wu · May 26, 2021 at 12:21 PM · multiplayer

how long will the log in be last for

I am trying to create a custom lobby system using Node.js which lets player create room and start game, then when client request to start the game, my Node.js server will request multiplayer game server for them as proxy, My Node.js server only uses PlayFabClientAPI and uses Login with custom ID to log itself in, because request multiplayer game server API call from PlayFab require login to be done before making the request multiplayer game server call, if I let my server running 24/7, will my Node.Js server ever be logged out?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · May 27, 2021 at 07:57 AM

Session ticket, along with entity token, will last around 24 hours. It will be fine to refresh the token every 12 hours by logging again. However, please note that client API will have frequency limit applied to each IP address, which is approximately 100 calls per 2 minutes. It may cause API throttling when it comes to large player base. The suggestion is to use a title-level entity token to call server APIs. You may set Secret Key in the request header of GetEntityToken API to get a title-level entity token.

Comment

People who like this

0 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bijian Wu · May 27, 2021 at 12:27 PM 0
Share

Does Server APIs have Request Multiplayer Server API for me to call on custom lobby to request server? if so which one? if not, what can I do with it?

avatar image SethDu ♦ Bijian Wu · May 31, 2021 at 08:03 AM 0
Share

Yes. Please refer to https://docs.microsoft.com/rest/api/playfab/multiplayer/multiplayerserver/requestmultiplayerserver. It is an Entity API.

avatar image Bijian Wu SethDu ♦ · May 31, 2021 at 11:29 AM 0
Share

thanks for posting this, i already know this one to request server on client side, is there any request server methods to call in Admin API or Server API, then pass back to clients, instead of asking client to start the game

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    LogIn Debug : Failed: PlayFab Failed: GetMatchmakingTicket: /Match/CancelMatchmakingTicket: The ticket is already completed. UnityEngine.Debug:Log(Object) 1 Answer

    Log server in 1 Answer

    Failed to connect to 172.20.0.11 port 56001: Timed out 1 Answer

    Unity Mirror Playfab Multiplayer Connecting to the Server 2 Answers

    Multiplayer Server refusing connection to client - Unity/Mirror/WebGL 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges