session-cookies

How to detect third-party cookies had being blocked without a page refresh; [?]

本小妞迷上赌 提交于 2020-12-13 03:07:44
问题 [?] detect third-party cookies had being blocked at runtime ; without a page refresh; JavaScript; localStorage Cookie; Block third-party cookies and site data; creating Dynamic Self-Contained HTML Documents in which " the Project " is Offline First; the detection of Third-party cookies happens by changing the browser settings, the cookie continue to set until the page is refreshed; sample code: using a try to catch "access" had failed(blocked); if (typeof(Storage) !== "undefined") { try{

How to detect third-party cookies had being blocked without a page refresh; [?]

纵饮孤独 提交于 2020-12-13 03:07:26
问题 [?] detect third-party cookies had being blocked at runtime ; without a page refresh; JavaScript; localStorage Cookie; Block third-party cookies and site data; creating Dynamic Self-Contained HTML Documents in which " the Project " is Offline First; the detection of Third-party cookies happens by changing the browser settings, the cookie continue to set until the page is refreshed; sample code: using a try to catch "access" had failed(blocked); if (typeof(Storage) !== "undefined") { try{

Detect if page was redirected or loaded directly(Javascript)

醉酒当歌 提交于 2020-08-27 19:33:31
问题 Currently, I want to display a label on the first page of my site a user visits. To make it simple, say I only care about page1.html and page2.html. Is it possible to check if the user was redirected from page1.html to page2.html?(Perhaps with cookies?) Edit: On page1.html, I set a cookie, which would expire in a minute. On page2.html, I checked for the cookie. Works great! 回答1: You can use document.referrer . The value is an empty string if the user navigated to the page directly (not

Chrome localhost cookies not being set

半世苍凉 提交于 2020-07-22 10:12:44
问题 I'm setting up ASP.NET Core authentication in different configurations, using Google Chrome as a development and test tool. Everything worked fine locally, but suddenly it stopped. I've inspected the http headers and I found Set-Cookie one there in my POST response, but nothing in the next request nor in the Application->Storage->Cookies tab. I've inspected the console and found no errors nor warnings there. I've restated and updated Chrome (with no effect) and finally switched to Edge and

Chrome localhost cookies not being set

吃可爱长大的小学妹 提交于 2020-07-22 10:12:15
问题 I'm setting up ASP.NET Core authentication in different configurations, using Google Chrome as a development and test tool. Everything worked fine locally, but suddenly it stopped. I've inspected the http headers and I found Set-Cookie one there in my POST response, but nothing in the next request nor in the Application->Storage->Cookies tab. I've inspected the console and found no errors nor warnings there. I've restated and updated Chrome (with no effect) and finally switched to Edge and

Set Xamarin WebView Cookie to seamlessly authenticate user without re-entering credentials

半腔热情 提交于 2020-06-29 06:05:42
问题 I have a Xamarin forms mobile app where the user authenticates using a post REST API and I am going to save the returned ASP.NET session ID and the authentication cookie to later pass it to my WebView in the main page to load a web page that needs authentication. For this, I created a custom web view renderer and followed some guides that suggested how to pass the cookie in the cookie container to the WebView for each request. But that does not work and I get to the login page of our website.

Rename session cookies in Rails

眉间皱痕 提交于 2020-05-29 02:31:53
问题 since I'd like the session cookie to reflect the url and not the app name, I'd like to rename the cookies.. The current session cookie name is called _APPNAME_session is there a way to rename it to _somethingelse_session ? I see the name of it when I do curl -i <appurl> I see set_cookie = _APPNAME_session=.... 回答1: In config/initializers/session_store.rb, set/change the following line: For Rails < 5.0.0: <APPNAME>::Application.config.session_store :cookie_store, key: '_somethingelse_session'