Lurk all you'd like, but why not register and post some pics? Registering also makes it easier to find the good stuff. Need help?

Go Back   Digital Grin Photography Forum > Support > SmugMug APIs, Hacks & Tricks
Dgrinner
Password
Register FAQ Shooters Calendar Reviews Tutorials Gallery Books Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old Feb-21-2008, 12:43 AM   #1
lildude
Big grins
 
lildude's Avatar
 
Join Date: Oct 2007
Location: England
Posts: 63
SessionID inactivity timeout

Hi there

Does anyone (possibly devbobo or Andy?) know what the SessionID inactivity timeout is?

To be more specific, when logging in with one of the login.with* calls, the SessionID is returned. How long is this SessionID valid for if I don't use it again for another call?

I've found that if I reuse the SessionID on regular intervals, say every 2 hours, it seems to be accepted indefinitely, however if I leave it for an extended period of time, say overnight, the SessionID is no longer valid, and I need to relogin.

Cheers,
Colin
__________________
Colin Seymour
Personal Blog | Tech Blog | phpSmug
lildude is offline   Reply With Quote
Old Feb-21-2008, 04:13 AM   #2
devbobo
technicolored
 
devbobo's Avatar
 
Join Date: Nov 2004
Location: Melbourne, AU
Posts: 4,319
Hey Colin,

I believe that it times out after 6 hours of inactivity.

Cheers,

David
__________________
David Parry
My Photos | SmugBrowser
devbobo is offline   Reply With Quote
Old May-04-2009, 07:03 PM   #3
winston
Big grins
 
Join Date: Apr 2009
Posts: 17
Hi,

Is 6 hours definitive as the timeout for the session id? Reason I ask is I'm testing a smugmug provider for a Drupal module that I'm developing. I'm working on a dev machine so I have directly access to the database. I'm definitely sending requests to the smugmug api using a sessionid I originally retrieved (and haven't used since) 23.5 hours ago.

Perhaps it is the case that session ids sometimes work longer than others because of some internal smugmug api implementation? That said, I definitely have to know definitively what is the minimum time which smugmug "might" invalidate a sessionid so I can avoid unnecessary errors (or unnecessary complication) in my code.

Smugmug and the api are awesome! Thanks in advance.

Peter
winston is offline   Reply With Quote
Old Feb-21-2008, 10:39 AM   #4
lildude
Big grins
 
lildude's Avatar
 
Join Date: Oct 2007
Location: England
Posts: 63
Thanks David.
__________________
Colin Seymour
Personal Blog | Tech Blog | phpSmug
lildude is offline   Reply With Quote
Reply

Tell The World!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Times are GMT -8.   It's 10:06 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.