Solved

why “You are not logged in” error return when rest API call except login API?

  • 17 March 2023
  • 3 replies
  • 315 views

To access Acumatica rest API's Acumatica ERP creating cookies for authorization when we hit the login API.
Authorization cookie not working after some time, all API return “You are not logged in”.
Please let me know what is the maximum time/ max age for cookie variable after login?

icon

Best answer by jinin 20 March 2023, 07:50

View original

3 replies

Userlevel 7
Badge +11

Hi @ashishCodecorners 

The maximum time or max age for a cookie variable after login in Acumatica ERP's REST API is determined by the server-side settings of the cookie's expiration time. This can vary depending on how the server is configured, and may be set to a specific duration (e.g. 1 hour, 24 hours, etc.), or set to never expire.

 

Hi @ashishCodecorners 

The maximum time or max age for a cookie variable after login in Acumatica ERP's REST API is determined by the server-side settings of the cookie's expiration time. This can vary depending on how the server is configured, and may be set to a specific duration (e.g. 1 hour, 24 hours, etc.), or set to never expire.

 

Thanks @jinin , It happens after some time or when we not processed any API URL, that’s why I want to know the duration set by Acumatica ERP after login. I am working with these API in our app or website so need to know the specific duration.

Userlevel 7
Badge +11

To determine the specific duration for which the authorization cookie is valid for your particular instance of Acumatica ERP, you can check the configuration settings on the server side. You can do this by contacting the system administrator responsible for managing your Acumatica ERP instance.

Alternatively, you can try experimenting with different values for the expiration time of the authorization cookie until you find one that works well for your use case. This can involve adjusting the server-side configuration settings or modifying your code to refresh the authorization cookie periodically.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved