Questions tagged [cookiestore]

The tag has no usage guidance.

cookiestore
Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

Rails Error: ActionDispatch::Cookies::CookieOverflow

I saw there are multiple posts on this topic on stack overflow but cant apply them. I got a rails error in my appliciation which I dont' understand: "ActionDispatch::Cookies::CookieOverflow" ...
Julian's user avatar
  • 44
0 votes
0 answers
29 views

How to Access Set-Cookie Values with httpUrlConnection.getHeaderFields() When Headers Are Empty Due to HTTP Only Cookie Restrictions?

I'm facing a challenge in accessing HTTP Only cookies in a large-scale Java application that uses httpUrlConnection. When trying to extract cookies from the Set-Cookie header of the HTTP response, I ...
CastPer's user avatar
1 vote
2 answers
306 views

Can't set cookies inside a load function

I'm fairly new to Svelte Kit and I am trying to set a cookie in the load function of my +page.server.js. Here is the code I have tried: export const load = ({ cookies }) => { cookies.set("...
hackerman's user avatar
0 votes
0 answers
54 views

Clear cookeis ASP.NET Core, how to secure endpoint against brute force attack

I'm using .net core 2.2 for MVC application. For the authentication, we have used LDAP. Also, I'm using Microsoft Indentity Server. Now we performed the security testing. Attacker can run the brute ...
Gurpreet's user avatar
1 vote
0 answers
117 views

How to properly restore a session on reload using ember simple auth custom authenticator's restore() function?

I have followed this YouTube tutorial on getting started with ember simple auth: https://www.youtube.com/watch?v=bSWN4_EbTPI&t=908s I have everything working properly except for when refreshing ...
Dean Longmire's user avatar
2 votes
1 answer
2k views

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. ...
Seminko's user avatar
  • 153
0 votes
1 answer
124 views

How can we disable the session to expire automatically in rails?

how can we have a Rails application without a session expiring automatically within specific period of time. Or if the question can't bring a clear picture, is it okay to just delete the the line ...
Pema Namgay's user avatar
0 votes
1 answer
846 views

Convert value from promise to string (cookieStore.get question)

I'm attempting to fetch a part of a value from a cookie on a website. So I've written code to get the cookie value, that works fine. And I attempted to do a JSON.stringify() of the returned value into ...
Mike Earley's user avatar
  • 1,273
-2 votes
2 answers
860 views

issue creating a popup and do not ask again check box in js

I was an issue with creating cookies to do not ask checkboxI want to create this type popup also cookies in website here is my html and js code please reviews my code and please help me sort this ...
Suraj's user avatar
  • 3
0 votes
1 answer
699 views

How do you flush the CookieStore to disk in QtPy5?

My goal is to have QWebEngineView cookies saved to disk so that if the application opening that widget is closed, the cookies are reliably saved to disk before the application exits, always. That way,...
Eddie's user avatar
  • 54.2k
0 votes
1 answer
352 views

How to separate two windows created with chrome extension with different identity so no cookies are shared between different identities

I am creating two windows with chrome extension using chrome. windows API. the problem is when I create the first window and I reach a payment web page on the first window some cookies are set, But ...
Rajneesh Chaurasia's user avatar
0 votes
1 answer
826 views

Xamarin Forms - Access CookieStore from a WebView

I'm creating a login page to a website and I want to use the cookies retrieved from this site to perform actions automatically So I followed this article to access cookies from a given website, From ...
Niv M.'s user avatar
  • 15
0 votes
1 answer
417 views

Why does Rails give assign me an _app_session cookie even though I am not logged in?

I'd like to understand the behavior of Rails of why am I given a session cookie even though I am not logged in. Does it serve any purpose and what are the potential use cases for it (aside from ...
Mysterywood's user avatar
  • 1,538
0 votes
1 answer
251 views

Java HTTP POST and GET converted from CURL

Hey all I am trying my best to convert this working CURL script to Java: @ECHO off set COOKIES=.\cookies.txt set USER=myUN set PASSWORD="myPW" set HOST=https://zzzzzzz.zzzzz.zz.zz:9443 cls ECHO "...
StealthRT's user avatar
  • 10.3k
0 votes
0 answers
133 views

can't get key value from cookies though it was exist but invalid format

I am setting some key in $cookieStore like $cookieStore.put('temp',temp); and saved ok in cookies but some where some bites of key value are changed , so when $cookieStore.get('temp'); I get this ...
Anwar Badr's user avatar
0 votes
2 answers
1k views

Set cookie for users browser when he access my website through another website

Is there any way to store a cookie in a users browser when he access my website through another website? Example: I have website a.com User sends a request using http://b.com and I'd like to ...
Adrian Pop's user avatar
1 vote
1 answer
3k views

What format Google Chrome using for cookies expire?

If i export cookie from Chrome with "EditThisCookie" extension i see something like this: { "domain": ".youtube.com", "expirationDate": 1599457462, "hostOnly": false, "httpOnly": ...
Supply's user avatar
  • 51
1 vote
0 answers
114 views

Angularjs - How to store array data for using in every controllers

When I logged in my page, server send me some data including array like 'user_info', 'user_token' and 'user_auth'. And I store them into $cookieStore. But I got one problem that length of 'user_auth'...
CRDeity's user avatar
  • 107
1 vote
2 answers
78 views

Methods of saving user info in AngularJS

I want to know about the ways of saving user info. Many seniors have recommended using $cookieStore, or Authentication or etc. But how about using $rootScope? My idea is when user has logged in, ...
CRDeity's user avatar
  • 107
2 votes
1 answer
5k views

How to store Cookies for the next session in ReactJS for Sign-Up functionalities. Can anyone give me some idea?

How to store Cookies for the next session in ReactJS for Sign-In functionalities. Can anyone give me some idea? Following is my ReactJs code for Sign-In page. Basically what I am trying to do is, a ...
Riya Kapuria's user avatar
  • 9,470
0 votes
1 answer
577 views

PHP Cookie store user form searches - multiple searches stored

I am trying to store user searches in a cookie to show the users "Recent Searches". The form contains 2 params: Keyword Location I can create the cookie no problem, but I can not update it and ...
John Jones's user avatar
  • 2,225
0 votes
1 answer
347 views

AngularJS $cookieStore stopped working

This morning when I got to work and started my application all of a sudden it did not work anymore. I traced the issue back to the $cookieStore not working. Has anyone experienced the same problem ...
johan's user avatar
  • 1,013
1 vote
3 answers
799 views

Setting a cookie in AJAX request with AngularJS

I am trying to set a cookie containing a token value retrieved from an Ajax request in AngularJS. At first, I tested the result of the request by simply displaying the token value in my html page -> {...
Hyun Woo Krassilchikoff's user avatar
0 votes
1 answer
394 views

How to get cookies values after closing and opening browser window using angularjs 1.x?

I am setting values in angularjs cookies using following code $rootScope.user= "Sai"; $cookieStore.put("userdata",$rootScope.user); and try to get same cookie value after closing and opening browser ...
user2709752's user avatar
0 votes
1 answer
1k views

Java 8 HttpClient 4.5 Handling cookies with BasicCookieStore

How can I do that? HttpClientBuilder client = HttpClientBuilder.create(); HttpResponse response = null; HttpClientContext context = HttpClientContext.create(); BasicCookieStore cookieStore = new ...
Iks Ski's user avatar
  • 380
0 votes
1 answer
1k views

reading dynamically created cookie names

i have a set of top messages that serve as alerts. They have an X to close them. Closing them sets a cookie that make them disappear forever, the name of the cookie is taken from the id of the ...
valerio0999's user avatar
  • 11.8k
0 votes
1 answer
2k views

PHP Cookies Registration and Login form [duplicate]

Hi there to all the readers of this topic! I know it sounds foolish, but I want to make some simple registration and login forms using php. It is not for a website so It shouldn't be secure and I don'...
Popa Gabriel's user avatar
7 votes
0 answers
1k views

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 ...
Anand's user avatar
  • 429
-1 votes
2 answers
395 views

Angular $cookies saved as Object. Can not fetch the object as JSON

After calling an api i got json data as follows which i stored using a variable. $scope.twotap_builtin_cart = {"sites":{"571fb46730bb1f373d00bdb4":{"info":{"name":"Overstock","url":"overstock.com"},"...
Rajib's user avatar
  • 462
0 votes
1 answer
659 views

Who ate my cookies? They are showing up neither in headers nor in cookiestore. I'm trying to read cookies from the http response

I'm trying get to the cookies from http response. But I'm getting empty output . I checked with fiddler, the http response contains a set-cookie header. But it seems that Cookies are not present in ...
Syed Afzal's user avatar
0 votes
1 answer
208 views

angularjs-1.2.14.js:9509 TypeError: Cannot read property 'put' of undefined

I am new to angularjs. I am trying to store a value in cookieStore but am getting below error. angularjs-1.2.14.js:9509 TypeError: Cannot read property 'put' of undefined My code : (function () { ...
Kalaiyarasi M's user avatar
2 votes
0 answers
1k views

After login WKWebView Session Logout in iOS

In my app, I want to do login using WKWebView and then all further request to server is done. I'm able to perform successful login using WKWebView. On it's success I get session information. I had ...
Raza Khan's user avatar
2 votes
2 answers
3k views

AngularJS: Retain Login information when page refresh

I am trying to retain the user information when page refresh. I used cookieStore for this purpose. So my run module in the Angular App looks like this. .run(['$rootScope', '$cookieStore', '$state', ...
Manoj G's user avatar
  • 1,796
1 vote
2 answers
5k views

How to implement remember me in angularjs, using authToken?

I am finding difficulty in implementing the functionality for "remember me" in angularjs. I have gone through couple of blogs on stackoverflow but didn't get the solution. Let us say I have 3 ...
shreyansh's user avatar
  • 1,657
1 vote
1 answer
1k views

Android Persistent Cookie Store with HTTPUrlConnection

I searched a lot now for the persistence of Cookies but cant find a good solution. I use HTTPUrlConnection to authenticate against a server and I get Cookies back. I retrieve them in CookieManager ...
Rei's user avatar
  • 11
5 votes
1 answer
5k views

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); ...
Eli's user avatar
  • 53
0 votes
3 answers
5k views

AngularJS, $cookieStore.put is not a function

I am getting error - "$cookieStore.put is not a function when I am trying to save cookies in my app. I am using AngularJS 1.4.1 and cookies same ver. var examinationApp = angular.module("...
inatoff's user avatar
  • 171
1 vote
1 answer
743 views

AngjularJs current user solution

I am new to AngularJs. My question is how to store current user data after user logged in? I have come across lots of solutions recommending the use of service, and inject the service into ...
Jiandong Chen's user avatar
1 vote
0 answers
240 views

Android HttpClient to accept all cookies

I'm pretty new in the Android world and maybe my question is very simple.. I have an android app where I use HttpGet to connect to a server and collect data. However the server sometimes sets some ...
ventsi.slav's user avatar
1 vote
2 answers
2k views

With 1.4 version of AngularJS, is it possible to create persistent cookies with $cookies?

With 1.4 version of AngularJS, is it possible to create persistent cookies with $cookies? I want data to be stored once I login, for 7 days say. In version 1.3.X, it is not possible to set ...
usingla's user avatar
  • 23
1 vote
0 answers
1k views

sharing cookies across domain using ngCookies/$cookiestore

I want to use ngCookies so I can re-use the login cookies on another host under the same domain. This way, when I login on app1.example.com and I visit app2.example.com, I won't need to login anymore. ...
devwannabe's user avatar
  • 3,180
0 votes
2 answers
881 views

Pass Selection Option to New Page

I've got a requirement to pass the currently selected option from an ng-option dropdown on one page and make it the default selection of the ng-option dropdown on another page. I can save the ...
Darrin Dickey's user avatar
0 votes
1 answer
269 views

AngularJS - Call Login Controller when cookieStore found

I have the following code: angular.module('myApp', ['ngRoute', 'ngCookies', ... , 'myApp.controllers']) .run(function($cookieStore) { console.log("Checking user credentials"); if (...
Gary's user avatar
  • 395
0 votes
1 answer
1k views

$cookieStore not saving the data for another iteration of a method

I have an application where i have checkboxes for each item(configurations) from an array(configurationsArray). What i want to implement is to add the configuration to the cookie store when checkbox ...
Raghvendra Singh's user avatar
8 votes
2 answers
2k views

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 ...
Daniel Bobbert's user avatar
0 votes
1 answer
947 views

Use apache httpclient as backend for jersey client base on PoolingHttpClientConnectionManager

i try to use apache httpclient as backend for jersey client to handle cookie automatically and here is my code class ClientHelper { public static HttpClientConnectionManager customConnectionManager(...
Zach Byrant's user avatar
1 vote
1 answer
1k views

Way to clear angularJS $cookieStore in one fell swoop instead of cookie by cookie?

Currently, using angularJS's $cookieStore, I am clearing cookies upon logout one by one. $cookieStore.remove('gender'); $cookieStore.remove('username'); I examined the $cookieStore object in console ...
claireablani's user avatar
  • 8,074
0 votes
1 answer
1k views

Cookie staying around after I delete it and refresh

I'm trying to remove the user's authentication cookie by using $cookieStore.remove('.ASPXAUTH'), but if I refresh the page afterwards, the cookie still exists and the page is still available instead ...
adam0101's user avatar
  • 30.1k
0 votes
1 answer
375 views

Ruby on Rails, Angularjs: Session getting reset

I am changing the value in session in an api controller, but it doesn't reflect next time the value of that variable in session is fetched. Here is the api-controller... module Api module V0 ...
red-devil's user avatar
  • 1,024
1 vote
1 answer
1k views

Why are my Rails sessions and cookies not persisting?

I have a Rails 4.0/Ruby 2.0 app with bare bones devise, and I added a feature to retain the main index page filter settings by way of an ajax call to the relevant controller, which stores them in ...
Dan Hoyt's user avatar