JavaScript is required to use Bungie.net

Forums

originally posted in:BungieNetPlatform
4/13/2015 5:43:42 AM
1
[quote]1. What is the more straightforward way of getting the Account Id?[/quote]If you've signed in an account, it's in the bungleme cookie. [quote]2. What error code should I expect when the cookies expire, or any way of knowing the date before hand?[/quote]Expiration dates are stored along with the cookies when they're set. If there is no expiration, it's considered a session cookie and will expire when the session ends. [quote]3. The url to sign out would be "https://www.bungie.net/en/User/SignOut", or do I need to add something else?[/quote]I'd probably just make sure you're allowing that request to follow any redirects it encounters and maybe delete the cookies in your client code (depending on how you're wanting it to work).
English

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Aha! Thanks for your response. For 1 bungleme seems to be the Bungie account Id, I'm referring to the DestinyMembershipId, I shoulda specified. For 3, I'll make sure to set redirects. But for 2 my problem is that Android's Webview implementation returns the cookies without their expiration date, so I can't tell from there. I get the values for bungled and leatk just with their names and values, not all HTTP header info. I figured maybe there was a set amount of time that these cookies can last whether the user clicked remember me or not, and then I'd check back at those times. If not then I guess I'll check after a sign in that the cookies are valid, then after that any Error 99 WebAuthRequired I'll assume the cookies expired.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon