combu 2.1.10 Authen...
 
Notifications
Clear all

combu 2.1.10 Authenticate a saved session error

2 Posts
2 Users
0 Reactions
1,304 Views
(@g3studio)
Posts: 5
Active Member
Topic starter
 

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 

Sending: http://114.203.87.24/demo/combu2110/users.php?UID=206&UGUID=582a72a2bbe565.74412622&action=login_session&sig_time=636148068433236463&sig_crc=2c3a29746ba1ec02b9a5652b0720c5db3487b532

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

 
Posted : 15/11/2016 4:43 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

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

 
Posted : 15/11/2016 11:59 am
Share: