anguyenqd / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

User can set persistent cookie store #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi everyone.
Be short, Functionality such as "Persistent Cookie Storage" are
present in AQuery?
I need use Cookies from first request in all requests of application
(after basic auth).
Some recomendations or short sample?

Original issue reported on code.google.com by tinyeeliu@gmail.com on 5 Mar 2012 at 3:10

GoogleCodeExporter commented 9 years ago

Original comment by tinyeeliu@gmail.com on 18 Apr 2012 at 4:39

GoogleCodeExporter commented 9 years ago
Tha should also work for images. Is there some workaround now for setting 
cookies for bitmap request  ?

Original comment by dohan.rene@gmail.com on 10 Sep 2012 at 12:54

GoogleCodeExporter commented 9 years ago
In fact it should follow http://www.ietf.org/rfc/rfc2109.txt so that users of 
the library don't have to re-invent a wheel. Implementation shouldn't be that 
hard because, as I can tell AQuery uses HttpClient that already implements it. 
I was actually surprised that it does not out of the box when I tried it.

Original comment by oleg.tsv...@gmail.com on 1 Oct 2012 at 7:01

GoogleCodeExporter commented 9 years ago
I did it in source of AQ , it was relatively easy … 

Original comment by dohan.rene@gmail.com on 1 Oct 2012 at 7:04

GoogleCodeExporter commented 9 years ago
any updates on this?

Original comment by la...@goodybag.com on 9 Feb 2013 at 9:52

GoogleCodeExporter commented 9 years ago
Well I can explain how I solved login cookies issue and it works by just few 
lines of code. After successful request you get AjaxStatus there you have 
cookies. Then just statically you can set it tu AbstractAjaxCallback and in 
AbstractAjaxCallback you can create constructor that will do this

public AbstractAjaxCallback() {
        if (_cookiesDefault != null) for (Cookie cookie : _cookiesDefault)
            cookie(cookie.getName(), cookie.getValue());
    }

thats everything. But this is just for my use case...

Original comment by dohan.rene@gmail.com on 29 Jan 2014 at 10:52

GoogleCodeExporter commented 9 years ago
Issue 94: Lost session on version android-query.0.23.16
Please look at my comment/commit - this solves user and session correct handling

Original comment by che...@gmail.com on 30 Jan 2014 at 3:35