endpoint/get/user/profile
-
darrelluk
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
-
darrelluk
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
6 years 5 months ago #6692
by admin
Hi Darrel,
the standard way to manage the session for Joomla is through cookies, so please check if you are sending back always the same session cookie in your requests, otherwise Joomla will not be able to identify you (i.e. a new session will be created for each request). You can check this inspecting headers under PostMAN.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
darrelluk
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
6 years 5 months ago - 6 years 5 months ago #6702
by darrelluk
Hi Luigi,
If I wanted to use session_id instead how would I do that? Do I need to include the session_id somehow in the
www.SITEURL.co.uk/index.php/endpoint/get/user/profile request?
I just checked the cookies in the request headers.
Step 1 has two cookies and a third one that states logged in under joomla_user_state. When I then do step 3 the two cookies are still there with the same values but the joomla_user_state has gone. My steps 3 fails with "error_code": "USR_UNL". It didn't used to do this!
Also, if I tried doing multiple logins before doing a logout I used to get the already logged in error. Now, I can just keep logging in over and over without any error. It always returns a new session_id (and cookies).
I hope you can help.
Thx, Darrell
Last edit: 6 years 5 months ago by darrelluk. Reason: correction
Please Log in or Create an account to join the conversation.
-
darrelluk
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
6 years 5 months ago #6704
by admin
Hi Darrel,
if you want to use the session id you need to enable it in the user plugin (it works only for the payed version of jBackend, it is not supported in the Community version).
After enabled it, you can just pass the "session_id" variable as query parameter, or in the body (works also with JSON payload).
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.135 seconds