Getting access to the SessionId from within the SmugMug Website.
esac
Registered Users Posts: 47 Big grins
I do not know if this is possible, however, to get what I want in a website, I am resorting to using the SmugMug API. The problem is that inside of the javascript (Top/Bottom Javascript), in order to use the API, I would have to embed my API key, username and password.
Instead of that, I was hoping that it would be possible to get access to the session id in the context of the user for that smugmug site. Or rephrased, this session id for rjakbennett.smugmug.com would be the session id as if I had logged into the website.
I would assume it would be easy enough to restrict access for using this session id only to requests originating from smugmug.com so it shouldn't be insecure.
Instead of that, I was hoping that it would be possible to get access to the session id in the context of the user for that smugmug site. Or rephrased, this session id for rjakbennett.smugmug.com would be the session id as if I had logged into the website.
I would assume it would be easy enough to restrict access for using this session id only to requests originating from smugmug.com so it shouldn't be insecure.
Bennett Family Gallery http://rjakbennett.smugmug.com
0
Comments
Want faster uploading? Vote for FTP!
Then just call whatever methods you need to, and just omit the SessionID parameter...the SessionID will be loaded from the cookie if it's not sent.
Hope this helps,
David
SmugMug API Developer
My Photos
Thanks
Want faster uploading? Vote for FTP!
In a gallery description where I have lots of html code add the following:
Really, at the end of the day, I want to be able to use the API inside my customization code (whether at the site wide level or at and individual page level).