Raven ap Morgan ([info]raven_ap_morgan) wrote in [info]lj_dev,
@ 2008-05-27 16:53:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: confused

SessionGenerate
I know perfectly well how to obtain the cookie associated with the SessionGenerate call - that's no problem. I'm completely confused as to what to do with that cookie to make my browsers stay logged in. I'm using Visual Basic 2008, and the browsers in question are not calls to the user's default browser, but internal WebBrowser forms. I don't know if I need to add the cookie to the header of each invocation of a WebBrowser, or whether there's a method call that will take care of it for me.

To quote TeX, "I'm stymied..."

How have you folks that have already written clients solved the problem?



(Post a new comment)


[info]pauamma
2008-05-30 10:00 am UTC (link)
Two things:
- Have you read http://www.livejournal.com/doc/server/ljp.csp.auth.cookies.html? It describes what to do with your session cookie (although not how to do that using VB, which may be what you are asking).
- I have no idea how to set HTTP headers in VB, or in your VB object. You may want to look at how other LiveJournal clients do it - see http://www.livejournal.com/download/. Or use the documentation for your VB object, or the tech support resources available for it.

(Reply to this)(Thread)


[info]raven_ap_morgan
2008-05-31 11:56 pm UTC (link)
Thing the First: I just looked over that piece of documentation. It's geared for people who are using the "cookie" method of authentication, and I'm using challenge-response (flat-style). I do have to wonder if throwing the full authentication might buy me something...

Thing the Second: I just tried a couple of ideas that looking at that code spawned, but to no avail. I wouldn't think that the problem is language specific, but then again, I'm trying something that no other clients do, too. I looked over what code is available, and very few of then mention SessionGenerate, it seems.

More research, though...

(Reply to this)(Parent)

Well, I think I've found the answer...
[info]raven_ap_morgan
2008-06-01 03:19 am UTC (link)
I just finished digging through the [info]lj_clients archive, and discovered something:

SessionGenerate is broken...

So basically, it looks like I need to figure out how to re-authenticate into the web page as I'm going in....

(sigh)

(Reply to this)(Parent)(Thread)

Re: Well, I think I've found the answer...
[info]pauamma
2008-06-01 07:28 am UTC (link)
Can you link to the lj_clients entry where you found that?

(Reply to this)(Parent)(Thread)

Re: Well, I think I've found the answer...
[info]raven_ap_morgan
2008-06-01 04:42 pm UTC (link)
I can do that, and I'll attach that to this thread.

I solved my own problem by starting up an invisible WebBrowser, getting logon.bml, putting in the user's username and password, and submitting that form. Once done, any other WebBrowsers I start seem to remember who the user is. Yay! MultiLJ is fully functional! I already have a support community at [info]multilj (where else?) and will have a web site up for it soon.

(Reply to this)(Parent)(Thread)

Documentation from lj_clients
[info]raven_ap_morgan
2008-06-02 06:27 am UTC (link)
Here are the posts I found in [info]lj_clients that indicated that SessionGenerate has been broken since about 2006:

http://community.livejournal.com/lj_clients/199702.html
http://community.livejournal.com/lj_clients/215307.html
http://community.livejournal.com/lj_clients/217335.html

I believe I transcribed those URLs correctly. I think it was the maintainer who said that SessionGenerate was broken.

(Reply to this)(Parent)(Thread)

Re: Documentation from lj_clients
[info]humanknowledge
2008-08-03 04:24 am UTC (link)
Thank you for this

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…