Constant loggin out after using API

Hi,

there is something quite annoying we’re witnessing when we access ERPNext with API scripts: we get disconnected after every request. It is not that bad, just annoying. And we were wondering if there’s anything we could do about it.
Thanks,
Amin



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/jGH0yoBFXFEJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Amin,

There should be no cause to logout are you sending the right session id (sid) in the cookies? The API is the same that is used by the browser client and the same expiry rules (Setup > Global Defaults) should apply.

- Rushabh


On Wed, Feb 6, 2013 at 11:53 PM, Amin Zayani <za...@gmail.com> wrote:
Hi,
there is something quite annoying we're witnessing when we access ERPNext with API scripts: we get disconnected after every request. It is not that bad, just annoying. And we were wondering if there's anything we could do about it.
Thanks,
Amin



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/jGH0yoBFXFEJ.

For more options, visit https://groups.google.com/groups/opt_out.












Twitter: @rushabh_mehta



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.