Diego, I think that you are mistaken about the contents of the sessionstore.js file. According to this link: http://kb.mozillazine.org/Sessionstore.js and my own inspection, the sessionstore.js contains information about the last open tab browser tabs when you close Firefox.
The SID is stored persistently in a cookie (http://67central.com/bc/2008/05/08/persistence-of-gsessionids/). On disk, Firefox cookies are stored in cookies.txt or cookies.sqlite depending on Firefox version, but I would think that there would be a Firefox API for reading cookies from inside the programs. In any case, I don't think that you should need to check for the presence of the cookie, but I don't understand exactly what you are trying to do. If you are using client login, you can save the cookie, but you always have the user's credentials, so there is no particular need. If you are doing this from inside Firefox, why not just attempt to perform the action that you want to perform and if the user has not authenticated, then they will be redirected to Google to do so. Maybe you could describe your use case more? Ray On Fri, Dec 5, 2008 at 1:46 PM, Diego Pino <[EMAIL PROTECTED]> wrote: > > Hi, > > Maybe this is not the best forum where to ask this question, but since > it's related somehow with Google Calendar I think should be fine. > > When authenticating against a Google service, using ClienLogin method > for example, three tokens are return on that response. One of them is > SID (session ID) token, which stands for the token of a valid Google > session. > > When accessing a Google web application using Firefox, there is no > need to provide your login + password once you are logged to one > Google service, since your SID is already stored within the browser. > > I am developing an extension for Firefox which uses Google Calendar > service. I would like to check whether the user has an opened Google > session, before authenticating against Google Calendar Service. > > I knew that this SID token used to be stored inside sessionstore.js > file (where all session tokens are stored), but now it seems is no > there anymore. My question is, how can I retrieve a SID token from the > browser, more specifically from Firefox. > > Thanks in advance, > > Diego Pino > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
