Session/Cookies for mobile apps

Get help using Construct 2

Post » Wed May 27, 2015 4:46 pm

So i'm building a mobile game, for ios and android, and for backend im using sails.js which will automatically assign session to web browsers as their cookies.

So how do I make my mobile game to receive the cookies and store it? Or i have to make another function to generate a random string as mobile app cookies and make them to send it everytime and validate it at my server manually?

Let's say i'm using conventional email and password login?
B
4
Posts: 6
Reputation: 216

Post » Wed May 27, 2015 5:26 pm

I don't know anything about sails.js, but here are a few Google search links for "sails.js sessions"

http://stackoverflow.com/questions/2196 ... ilsjs-view
http://irlnathan.github.io/sailscasts/b ... n-in-page/
http://stackoverflow.com/questions/2196 ... ilsjs-view

All hail, all-knowing Google knows all. Hail hail!
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed May 27, 2015 5:35 pm

This question is not on sailsjs, the point is im not familiar with the concept of construct 2 building mobile games, the question is, will construct 2 game when i exported and published as ios apps behaves as web browser version of it where it will automatically save the cookies?
B
4
Posts: 6
Reputation: 216

Post » Wed May 27, 2015 5:48 pm

Ah yea, browsers have a local cache for storing cookie session ids. I assume iOS does something similar, but I do not know for sure.

I am sure that Google has your answer, it is just matter of finding it.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Pulstar and 12 guests