Check if third-party cookies are enabled

I have an application that needs to check whether the client browser has third-party-cookies enabled. Does anyone know how to do this in JavaScript?

PHP Speed Test for user connection speed without echo in current page

I am looking for a possibility to check the user connection speed. It is supposed to be saved as a cookie and javascript files as well as css files will be adapted if the speed is slow. The...

"Validation of viewstate MAC failed" with Kentico 7.0 and IIS 7.5

The Situation: We have 2 Webserver IIS7.5 which run loadbalanced (Software, standard install) framework 4.5 installed We have a Kentico 7.0 Installation running on both Server. The Problem: The...

Force cleaning of session cookies (firefox, chrome)

Some browsers (Firefox, Chrome) by design doesn't clean session cookies when you close them, if you set some kind of remember me switch (for example in FF go to Options->General->When Firefox...

Share cookie between subdomain and domain

I have two questions. I understand that if I specify the domain as .mydomain.com (with the leading dot) in the cookie that all subdomains can share a cookie. Can subdomain.mydomain.com access a...

PHP - setcookie(); not working

I've made a login, that sets a cookie with a value of the imputed email address, so in the global.php file, it stores an array of the users data using: $email = $_COOKIE["PeopleHub"]; ...

HTTrack possible using cookies

I want to download the page from a URL, easy enough. But on the first page I have to login, as I normally do from a normal browser. But HTTrack is downloading from the first page since it can't...

Difference between the "Resource Owner Password Flow" and the "Client Credentials Flow"

The difference between the "Resource Owner Password Flow" and the "Client Credentials Flow" seems unclear to me. The former seems to forward the password credentials to the server for...

Check if my website is open in another tab

I want to check with JavaScript if the user has already opened my website in another tab in their browser. It seems I cannot do that with pagevisibility... The only way I see is to use WebSocket...

How to inject dependencis into WCF Attribute with Simple Injector

I have a bunch of WCF services that works with REST and SOAP. I have created an WCF attribute who checks if the current httpcontext exists, if exists it use cookie authentication, other way it use...

Where does Chrome store cookies?

Let's say I set a cookie using the setcookie() function in PHP: setcookie('name','foo',false,'/',false); I can see it in: chrome://settings/cookies However, I can not find the actual file...

How to get cookie from scrapy response and set the cookie to the next request?

I have disabled the Default Scrapy cookie option, so that i have to set it manually. COOKIES_ENABLED = False COOKIES_DEBUG = True Now, i need to set cookie with the value which is received as...

CSRF with Django, React+Redux using Axios

This is an educational project, not for production. I wasn't intending to have user logins as part of this. Can I make POST calls to Django with a CSRF token without having user logins? Can I do...

Javascript , encodeURI failed to encode round bracket "("

I have cookie value which contains round bracket " e.g: demo (1)" When I try to encode with encodeURI , the round bracket ( is not encoded to %28 , what is the alternative to encode the special...

Getting "Too many requests" error when scraping a particular website using scrapy

I have written a spider to fetch details from http://allevents.in. Every time I tried to scrap, I am getting a response body Too many requests, please try after some time or report this problem at...

Checking remaining seconds on Laravel cookie?

Can someone tell me how I can check how long left on a cookie that I have set on Laravel? The documentation shows nothing on how to do this. I would like to stick to using the Laravel's cookie...

Which loss function should I use in my LSTM and why?

I try to understand Keras and LSTMs step by step. Right now I build an LSTM there the input is a sentence and the output is an array of five values which can each be 0 or 1. Example: Input...

How to use createPersistedState in a vuex and quasar application?

How to use createPersistedState in a vuex and quasar application? I am trying to persist some daos in the cookie of my application, however the data is not being written in the cookie. What am I...

cookies.txt not working on Httrack version 3.49-2

hi guys I'm using httrack and using cookies for the authentication but it seems my cookie doesnt work the syntax i'm using httrack -b1 -%M -r1 −F "Mozilla/4.5 (compatible; MSIE 4.01; Windows...

net core / IdentityServer : unable to logout

In my Blazor app, I use the Identity-server (identityserver.io) as an external service to manage the authorization. The login works correctly, but when I try to log out, and then try to log in,...

Quarkus - modify JSESSIONID attributes

Is there a way to add SameSite=None attribute to JSSESSIONID cookie. I tried to add exists(%{o,Set-Cookie}) and regex(pattern="JSESSIONID", value="%{o,Set-Cookie}") ->...

Saml No Cookie Preserving State ASP.NET CORE

var certbase = _env.IsDevelopment() ? "" : AppDomain.CurrentDomain.BaseDirectory; var pathpfx = Path.Combine(certbase, "xxxxx.pfx"); var pathxml = Path.Combine(certbase,...

Php setcookie not working on Android phones

I have the following code where I set cookies normally. It was working fine until the new SameSite update from chrome. It stopped working. I've added the SameSite as you can see but a few users...

Keycloak with Angular logins automatically

I have an Angular 9 application. Trying to connect with Keycloak server. My final goal is to have SSO for 3 applications, with auth-guard on each (access only some pages requires...

What does SetApplicationName actually do in reference to AddDataProtection?

Consider this example code: services.AddDataProtection() .SetApplicationName("TestingApp"); The docs seem to indicate that setting the application name like this will allow two servers to...

How to complete geetest (captcha) when scraping, by python-requests, while request values are taken by solving captcha manually?

I'm trying to scrape website, which use datadome and after some requests I have to complete geetest (slider captcha puzzle). Here is a sample link to it: captcha link I've decided to don't use...

System.InvalidOperationException: 'The response headers cannot be modified because the response has already started.'

I am using Blazor server side and want to set Cookie for that i am using SignInAsync function of HttpContext but giving me this error "The response headers cannot be modified because the response...

Go: how to not remove double quotes on cookies

Go removes double quotes in cookies. The delimiter appears to be semi colon plus space. How do I put double quotes in a cookie in Go? For example, I'm sending a small JSON message that Go is...

Autoplay audio player with cookie state. Almost done, need code help to finalize

I need help with custom code on a freshly finished project https://alreadyeverything.co.uk There is an audio player on each page with lottie animation, which remembers the on/off state in the...

CSRF token error for django app when deploying to AWS server

I have a django site that runs fine locally but when trying to deploy with AWS elastic beanstalk I get the following error when I try to login (using django allauth) Forbidden (403) CSRF...