Questions tagged [cookiestore]

97 questions
78
votes
5 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
  • 1,031
  • 1
  • 11
  • 20
24
votes
5 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,463
  • 6
  • 16
  • 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,217
  • 2
  • 16
  • 31
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,793
  • 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
  • 17
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,175
  • 2
  • 21
  • 49
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
  • 179
  • 1
  • 3
  • 9
5
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…
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

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,254
  • 2
  • 14
  • 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,975
  • 5
  • 30
  • 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
  • 3,089
  • 5
  • 43
  • 81
2
votes
1 answer

Chrome Extension - get all cookies for a specific tab - is it correct?

I'm trying to get all cookies for a particular tab. The trouble I'm having, and bear with me because I'm no cookie expert, the cookies I get from all the different methods are different / incomplete. Method 1: document.cookie - the way I understand…
1
2 3 4 5 6 7