cookies

Why is SFSafariWebViewController not sharing cookies with Safari properly?

爱⌒轻易说出口 提交于 2021-02-17 21:58:26
问题 I created an incredibly basic app which includes a SFSafariViewController pointing at the URL http://www.w3schools.com/js/js_cookies.asp . This is a test website for reading and writing cookies. I then loaded the same website into Mobile Safari, and added one cookie. I switched to my app, read the cookie, it's there. I go back to Safari, add another cookie, go back to my app, but the second cookie hasn't appeared. I refresh the pages, no difference. Go back to Safari and read the cookies,

Cookie not setted or not working the first time

半城伤御伤魂 提交于 2021-02-17 06:49:06
问题 On every page I set a cookie to color the header button corresponding to that session. The problem is that the first time I open a page in a different section, the cookie remains the old, and the colored button too. Then if I click another time the same button, the cookie is correctly setted. Why? Here my code: <?php include $_SERVER['PERCORSO_GLOBALS']; $pagelevel = '1'; require_once ROOT_DIR.'/administrator/flock/session_users.php'; setcookie('lng', 'it'); ?> <head> ... </head> <body> <?php

Accepting cookies error with Python/Selenium on www.instagram.com

久未见 提交于 2021-02-17 06:00:24
问题 I'm trying to, using Firefox, log into Instagram by using Python Selenium using the following code: from time import sleep from selenium import webdriver browser = webdriver.Firefox() browser.implicitly_wait(5) browser.get('https://www.instagram.com/') sleep(2) username_input = browser.find_element_by_css_selector("input[name='username']") password_input = browser.find_element_by_css_selector("input[name='password']") username_input.send_keys("<your username>") password_input.send_keys("<your

ASP.Net Core makes too many cookies for my app to handle

时光总嘲笑我的痴心妄想 提交于 2021-02-17 05:50:06
问题 I have a test application that I am using to test integration with my WSO2 Identity Server IDP. When run by itself it works just fine. It makes an .AspNetCore.Antiforgery cookie and an .AspNetCore.Cookies cookie. The anti-forgery cookie is 190 bytes and the main cookie is 3.7K bytes. But if I login to another application first, then load my my test harness page, it get 4 additional cookies: .AspNetCore.CookiesC1 - 4K Bytes .AspNetCore.CookiesC2 - 4K Bytes .AspNetCore.CookiesC3 - 4K Bytes

ASP.Net Core makes too many cookies for my app to handle

倖福魔咒の 提交于 2021-02-17 05:50:01
问题 I have a test application that I am using to test integration with my WSO2 Identity Server IDP. When run by itself it works just fine. It makes an .AspNetCore.Antiforgery cookie and an .AspNetCore.Cookies cookie. The anti-forgery cookie is 190 bytes and the main cookie is 3.7K bytes. But if I login to another application first, then load my my test harness page, it get 4 additional cookies: .AspNetCore.CookiesC1 - 4K Bytes .AspNetCore.CookiesC2 - 4K Bytes .AspNetCore.CookiesC3 - 4K Bytes

Setting jsessonid cookie to SameSite=Strict attribute in spring boot?

你说的曾经没有我的故事 提交于 2021-02-16 19:45:16
问题 What is the spring-boot configuration to set jsessionId cookie as SameSite=Strict. JsessionId need to add SameSite=Strict or existing cookie not new cookie generation.Is it support? 回答1: I used Rfc6265CookieProcessor to configure SameSite flag in the spring boot application as a workaround. build.gradle : dependencies { implementation 'org.springframework.boot:spring-boot-starter-tomcat' ... } Config in the main class: @Bean public ServletWebServerFactory servletContainer() { return new

ASP.NET - Request.Cookies no longer working in Chrome V80+

自作多情 提交于 2021-02-11 17:07:46
问题 In what is undoubtedly related to the Chromes samesite cookie policies released recently I am now having issues updating cookies in ASP.NET. I have a simple cookie collection to store basic user settings. The cookie is both generated and updated using the code below. SET COOKIE If Response.Cookies("Settings") IsNot Nothing Then Dim cookie As HttpCookie = Request.Cookies("Settings") cookie("Setting01") = ddl.SelectedValue cookie.Expires = Date.Now.AddDays(365) Response.Cookies.Add(cookie) End

ASP.NET - Request.Cookies no longer working in Chrome V80+

折月煮酒 提交于 2021-02-11 17:04:56
问题 In what is undoubtedly related to the Chromes samesite cookie policies released recently I am now having issues updating cookies in ASP.NET. I have a simple cookie collection to store basic user settings. The cookie is both generated and updated using the code below. SET COOKIE If Response.Cookies("Settings") IsNot Nothing Then Dim cookie As HttpCookie = Request.Cookies("Settings") cookie("Setting01") = ddl.SelectedValue cookie.Expires = Date.Now.AddDays(365) Response.Cookies.Add(cookie) End

VB.NET console application - login to website and download file

╄→гoц情女王★ 提交于 2021-02-11 16:55:06
问题 I am working an a VB.NET console application which automatically downloads textfiles from different websites. So far I've been using My.Computer.Network.DownloadFile(url, local_path, username, password) and it works fine - but there is one website which uses cookies. Under normal circumstances I have to manually visit the website in my browser, login by entering my credentials into a login form, press the "Log in" button and then there is a link which lets me download the file. If I use this

VB.NET console application - login to website and download file

落花浮王杯 提交于 2021-02-11 16:54:16
问题 I am working an a VB.NET console application which automatically downloads textfiles from different websites. So far I've been using My.Computer.Network.DownloadFile(url, local_path, username, password) and it works fine - but there is one website which uses cookies. Under normal circumstances I have to manually visit the website in my browser, login by entering my credentials into a login form, press the "Log in" button and then there is a link which lets me download the file. If I use this