dear sirs.
I used the guest login.
it's ok to make a guest account but save a id and session key. after that try to
User.AuthenticateSession (userId, sessionToken, (bool success, string error) => {
I meet the error .
error message is
TEXT: Unauthorized request
>> guest AuthenticateSession - Success=False > Error=
please check the Authenticate process.
---
in server parts,
I comment this one because I meet the create account error.
//--- error comment
// Expire sessions (must be a valid parameter for DateInterval constructor) http://php.net/manual/en/class.dateinterval.php
//define ("EXPIRE_CLIENT_SESSION", "PT1H"); // comment this line to disable account session expiration
To fix the error in User.AuthenticateSession call, please edit /users.php line 6 it should look like this (it's already in for the next update):
if (!isset($_REQUEST["action"]) || !in_array($_REQUEST["action"], array("create", "exists", "create_guest", "login_session")))
I didn't understand the question on EXPIRE_CLIENT_SESSION, are you getting error on create account if the const is defined? Can you give more details please?
FRANCESCO CROCETTI @ SKARED CREATIONS