Questions tagged [cookiestore]

93 questions
65
votes
4 answers

Android - extracting cookies after login in webview

I have an application that opens a url in a webview, the user must then login to a site through the webview and receives a cookie once logged in. I'm having problems getting cookies after login. The problem is, I can achieve this using…
elgoog
  • 901
  • 1
  • 9
  • 20
21
votes
3 answers

How to save a cookie in an Android webview forever?

With my code below, I have been able to save a cookie, but as soon as I close the application the cookie disappears. How is this caused and how can I solve it? package com.jkjljkj import android.app.Activity; import android.os.Bundle; import…
Nick Chubb
  • 1,315
  • 5
  • 14
  • 26
14
votes
1 answer

$window.sessionStorage vs $cookieStore

What is the difference between using $cookieStore and &window.sessionStorage? Are there times when one should be used over the other? Security Issues? Here is what I know so far: The AngularJS docs state that the $cookieStore service is backed by…
oberger
  • 1,197
  • 2
  • 14
  • 29
9
votes
1 answer

How to use different cookies for each connection using HttpURLConnection and the CookieManager in Java

I needed to connect to a website from multiple threads simultaneously using HttpURLConnection, but use different cookies for each connection. Since Java only supports setting a global CookieManager, I've implemented the following hack. Instead of…
nivs
  • 1,783
  • 1
  • 11
  • 13
8
votes
2 answers

How to set cookieAcceptPolicy for ephemeral NSURLSession

I am trying to use ephemeral NSURLSessions to provide separate cookie handling for several tasks within my app. These tasks are not directly bound to a UI. Problem: Whatever I do, the cookieAcceptPolicy of the ephemeral NSHTTPCookieStorage remains…
7
votes
0 answers

How to persist the cookies in android even after app close or put in background by pressing menu button in android?

Hello sir i am new in android and want to persist cookies for all time until user click on signout.but present i am using default Cookiemanger which remove cookies after some hours and my app becomes unresponsive so app not able to make further…
Anand
  • 429
  • 2
  • 15
7
votes
1 answer

angularjs $cookieStore size limit

I found that angularjs serializes and deserializes when using $cookieStore.put/get and I'm able to put a whole object into it. So what is the size limit? 4kb?
rjnpnigrhi
  • 79
  • 1
  • 7
6
votes
3 answers

SyntaxError on the welcome to rails screen using Pow

I have just set up a new project which displays all the correct info in the about your applications environment window when on http://localhost:3000/ but when I run it at http://egg.dev/ I get: SyntaxError:…
Dave
  • 1,161
  • 2
  • 21
  • 48
6
votes
1 answer

Angularjs cookies - How to use them across controllers

There doesn't seem to be any really clear documentation on cookie use with AngularJS so I'm a bit lost with this. I have two controllers, one creates a cookie and stores a users ID, and then I want to retrieve that ID later when another controller…
AdrianBorkala
  • 175
  • 1
  • 3
  • 8
5
votes
2 answers

How to get cookies in HttpUrlConnection by using CookieStore?

In my Application class, I do the following: public class MyApplication extends Application { private static HttpURLConnection conn = null; public static CookieStore cookieStore; public static HttpContext localContext; public static…
sique
  • 241
  • 1
  • 2
  • 12
4
votes
1 answer

Java android - CookieHandler - How to keep cookies after closing the app?

To keep cookies after each request in HttpURLConnection, should to add CookieHandler on the app starting: CookieManager cookieManager = new CookieManager(); CookieHandler.setDefault(cookieManager); But in the app closing and opening again the…
3
votes
1 answer

session cookies work on emulator, but not real device

I'm developing an app using android 2.1. I have a problem with using session cookies to login to a RESTful web service. The code works fine on the emulator, but when I run it on my HTC Magic, the cookie logic doesn't work. I've confirmed that the…
mvsjes2
  • 1,172
  • 2
  • 12
  • 23
3
votes
2 answers

Rails CookieStore::CookieOverflow, not for all users, only in production

I have a couple users that are getting this CookieStore::CookieOverflow error. I'm suspicious of nginx/passenger because I just switched to that last week (from nginx/thin) and now these are happening. It's always a particular action, but it doesn't…
wesgarrison
  • 6,715
  • 5
  • 28
  • 39
3
votes
1 answer

HttpPost cookies persisting android

I want to save cookies after the post requests. Class for httpClient realization: public class JSONParser { CookieStore store = new BasicCookieStore(); static InputStream is = null; static JSONObject jObj = null; static…
Rikki Tikki Tavi
  • 2,913
  • 4
  • 37
  • 78
2
votes
2 answers

How to store cookie jar to be used between functions inside class?

I'd like to hear your suggestions on how to effectively store cookies, that are to be used inside a class by other functions. My current code looks like this: class SomeClass: def __init__(self, username, password): self.logged_in =…
Gargauth
  • 2,115
  • 6
  • 24
  • 28
1
2 3 4 5 6 7