WebFaction
Community site: login faq

I'm working on a project that will use the API and saw no documentation as to the expiration of session_id, does it persist only for the next call, for a few minutes or is there a different criteria to its expiration?

In other words, how often should I call login? Every 5 minutes, before each method call, other?

asked 31 Dec '12, 18:23

bitspill
31210
accept rate: 0%


API sessions will timeout after one hour of inactivity so if you keep calling API commands with the same session ID you'll never get logged out. However if you don't call an API command for an hour then the session will expire and you will have to login again.

permanent link

answered 07 Jan '13, 06:13

DavidR
712
accept rate: 100%

Sounds good, thanks.

(08 Jan '13, 13:47) bitspill
API sessions are valid for two weeks from the time you successfully call the `login()` method.

Actually, I'm not sure about that. Will get back to you!

permanent link

answered 31 Dec '12, 18:52

seanf
12.1k21635
accept rate: 37%

edited 31 Dec '12, 19:10

Ok, not a problem. I still need to do some work before that even becomes a problem yet.

(01 Jan '13, 11:38) bitspill
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×73
×1

question asked: 31 Dec '12, 18:23

question was seen: 2,434 times

last updated: 08 Jan '13, 13:47

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM