session tokens

Last post 10-05-2007 3:06 PM by BarryR. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-20-2007 4:10 PM

    • plamb
    • Top 100 Contributor
    • Joined on 09-20-2007
    • Posts 2

    session tokens

     How long is the session token good? Is it possible to create a token that is good for x number of days? Is there any way to define a custom-redirect when some attempts to access a file with an expired token?

  • 09-21-2007 11:38 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Re: session tokens

    plamb:
     How long is the session token good?
     

    {EDIT: Updated the timeout to 20 minutes, I originally specified the wrong time.}
    Session tokens are a sliding window that expire after 20 minutes of inactivity. 

     

    plamb:
    Is it possible to create a token that is good for x number of days? Is there any way to define a custom-redirect when some attempts to access a file with an expired token?

    This is a great idea and one we had not thought of.  I will introduce this idea for a future release.  I would image this would just be a parameter being passed along with the download such as http://node1.nirvanix.com/SESSIONTOKEN/App/User/Path/file.txt?forwardUrl=http://yoursite.com/someplace.php

    Currently however this is not possible but we will keep you apprised.

    Regards,
        Barry R.

     

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
    Filed under: , ,
  • 10-05-2007 3:20 AM In reply to

    Re: session tokens

    Barry,

    I have a similar need. I'm after time-sensitive URLs like S3 has. I thought the session tokey may provide this for me but since it's effectively sliding it's possible for the user to prolong access to the file by clicking on the download link every so often.

    So what I'd like to see is the ability to set the timeout period in minutes (say X) via some paramter, and at time point Y, be able to generate a publicly accessible URL to the file which is decorated with a different token such that it is valid only for the period Y+ X . After that it can return an error of some sort.

    I can't see anything in the doco that covers this. Did I miss it ?

    Thanks

    Damien

  • 10-05-2007 3:06 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 614

    Re: session tokens

     You are looking for GetDownloadLinks this will generate a token that lasts for a period of time.  This method takes one or more paths (Array), the Expiration time in seconds and optionally the IP Address to restrict the download to.

    After expiration you can no longer download the file and instead will get back an error.

    You can find the soap implementation at: http://services.nirvanix.com/ws/IMFS.asmx?op=GetDownloadLinks

    Regards,
        Barry R.
     

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
Page 1 of 1 (4 items)