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 Ilse Mul · Jul 13, 2020 at 04:32 PM · Player DatasdksAccount Management

PHP SDK ClientSessionToken

Quick question:

What is the ClientSessionToken supposed to do? We don't need to fill out the field, there seems to be no description anywhere on the official docs, nor on the forums from what I saw at first glance. I assume it's the session token you need to keep a player logged in at your site with their PlayFab account, but shouldn't that be returned by PlayFab? Or do I understand it wrong?

Thank you for the help! :)

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 Sarah Zhang · Jul 14, 2020 at 02:44 PM

>> We don't need to fill out the field, there seems to be no description anywhere on the official docs, nor on the forums from what I saw at first glance.

Yes, generally, title developers don’t need to fill out it manually, unless using the API testing tool -- Postman. Because this field is in the request header of client APIs, and most PlayFab Platform SDK will fill it in PlayFabSettings (a field in the SDK) programmatically. If you check the API reference of a client API, for example, AddUsernamePassword, you can find the “Session Ticket” field in the request header.

>> I assume it's the session token you need to keep a player logged in at your site with their PlayFab account.

Your assumption is almost right, “client session ticket”is the client's credential to access the Client API, it needs to be contained in the request header of every client API. And as the first answer said, it would be filled in programmatically by most SDK. And every client session ticket would expired after 24 hours.

>> But shouldn't that be returned by PlayFab?

“Client session ticket”would be returned in the response of every login API calls, you can navigate to this page -- Authentication APIs to retrieve the API references. For example, it could be returned by LoginWithCustomID.

Comment

People who like this

0 Show 1 · 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 Ilse Mul · Jul 19, 2020 at 05:24 PM 0
Share

Sorry for the late response. Thank you for the help!

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

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Multiple accounts within the same title 2 Answers

    I keep getting Uncaught errorLoggedIn on the Javascript SDK trying to GetPlayerProfile 3 Answers

    How can I convert the timezone in PlayFab? 1 Answer

    Converting PlayFab Info to Player Object 2 Answers

    Updating linked Steam account usernames (display names) when they change them on Steam? 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