Skip to main content
Solved

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


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?

Best answer by jinin

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.

View original
Did this topic help you find an answer to your question?

3 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 680 replies
  • March 17, 2023

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.

 


jinin wrote:

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.


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 680 replies
  • Answer
  • March 20, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings