question

sergio hungria avatar image
sergio hungria asked

How can I make a session ticket expire?

I've searched everywhere and can't find a way?

,
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

PlayFab doesn’t support directly making a session ticket expired, and all the session ticket will last around 24 hours. however, there is a work around solution.

Every time the player has logged in successfully, you may store the session ticket into Player Read-Only Data or Internal Data for later retrieval. It ensures the session ticket to be up-to-date. Then If a player is using an old but valid session ticket, in some scenario, the client will run Cloud Script function and compare the current session ticket with the one stored in Player Data. If the verification fails, the player will be redirected to the login screen.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hoangtrunghuster avatar image hoangtrunghuster commented ·

How to get session ticket in cloudscript?

0 Likes 0 ·
hoangtrunghuster avatar image hoangtrunghuster commented ·

Hi Seth Du, How to store the session ticket into Player Read-Only Data in cloudscript? Thank you

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.