PHP: Cookie domain / subdomain control

I'm working on a site with multiple subdomains, some of which should get their own session. I think I've got it worked out, but have noticed something about cookie handling that I don't...

Proxy Check in python

I have written a script in python that uses cookies and POST/GET. I also included proxy support in my script. However, when one enters a dead proxy, the script crashes. Is there any way to check...

Why do many sites name cookies with a leading underscore?

I've noticed that many sites create cookies named with a leading underscore. I've also seen similar in defaults for various web frameworks. What is the significance of the leading underscore in...

Time out error in deploying the process on weblogic server

While deploying the BPEL process in Weblogic 10.3.4, following Exception comes on soa server console. I am sure this is not related to my application, but due to this I am not able to deploy the...

Why does PHP replace pluses with spaces in $_COOKIE?

So from my understanding of PHP and cookies, if I use the setcookie() function, then I get a cookie that is automatically url encoded. And when I go to the $_COOKIE array, I should get the cookie...

Where should i store current user in node.js?

As with almost any web application, I need a way to reference the current user in my node.js app. I have the login/session system working, but I noticed today that when I login to my app in one...

How/Where to store data in a Chrome Tampermonkey script other than localStorage?

I wrote one Greasemonkey/Tampermonkey script for Facebook . I needed to store data to retrieve it later. For that I used localStorage. That was working fine. But I noticed that after few hours all...

Web Proxy like Optimizely

I'm trying to write a proxy like Optimizely. If you go to http://optimizely.com you can try Optimizely on any site. Here's an example: https://www.optimizely.com/edit#url=espn.com. I've dissected...

Laravel auth session cookie not sending

So I have a pretty basic Laravel login script $email = Input::get('email'); $password = Input::get('password'); if(Auth::attempt(array('Email'=>$email, 'password'=>$password), true)){ return...

Heroku/Rails/Devise: The change you wanted was rejected

I'm having a problem with my Rails 4.2 app running the latest version of Devise on Heroku. I'm going to preface this by stating that I have not pushed any code changes to production in quite some...

Cookie restriction notice in header instead of footer

I'm looking for a solution for our web shop. We're using the Magento RWD default theme on our site/webshop (www.jessicaglassart.nl). As in the users guide of Magento version 1.9, the cookie...

Node error: "Cannot find module 'routes'"

Update 12/14/15: I see that the next chapter instructs the reader to create the 'require' module, so I'll forge ahead. The book seems to be poorly edited - maybe they rearranged some content and...

Express nodejs session cookies: req.cookies['connect.sid'] is not generated and req.sessionID is different after each refresh

I use express 4.13.3 and express-session 1.11.3. Here my configuration session: app.use( session({/*store: new redis_store,*/name: 'connect.sid', secret: 'azerty is qwerty', resave: false,...

Magento site copy redirecting to old domain despite all factors I could possibly find

Just a day ago my staging copy of our production website was working perfectly. I see no connection with anything that happened since then that could cause this. Live site:...

http get works in browser and postman but get a 401 using c# httpwebrequest

I have a web app hosted in azure. When I use postman to make the request I get a json result, which is the correcet response. When I try to make the same request via C# using the same token I...

Set cookies for cross origin requests

How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here's an explanation of my situation: I am...

Apparently Random Error: "Antiforgery token validation failed. The antiforgery cookie token and request token do not match."

Background I have a relatively new ASP.NET Core 2 site. It's running on just one server (Windows Server 2012 R2, IIS 8.5), and I only restart the site once every few days when I upload an update....

How to protect web application from cookie stealing attack?

My web application's authentication mechanism currently is quite simple. When a user logs in, the website sends back a session cookie which is stored (using localStorage) on the user's...

How to handle CloudFront Signed Cookie with .m3u8 files on iOS?

I have an App which is playing audio files stored on AWS. The audio content is secured by AWS CloudFront signed cookies functionality. I had no problem in creating the signed cookies and set them...

User not authenticating on successful login ASP.net MVC

I have a strange issue happening while creating this MVC project. Yesterday I was able to log in as a user, it was authenticated and everything worked fine. Today for some reason the user is...

How to control Google Analytics tracking in Nuxt based on consent cookies?

I implemented Google Analytics tracking using @nuxtjs/google-analytics I would now like to control whether or not the user is being tracked based on a consent given by the user. I found...

How to format a text inside a variable in React using \n or <br/> or similar

I need to format a text inside a variable using React. I need to use \n or but it's not working, Also I need to bold the tittles. For example: const termsAndConditions = "Terms and...

Proper sudoers user / session setup for xrdp and systemd-modules-load / auditd fails in a WSL2 openSUSE-Leap-15.2 environment

I've managed it to successfully run xrdp in an openSUSE-Leap-15.2 WSL 2 Linux subsystem on my Windows 10 64 PC. My Linux knowledge is not that great. I use KDE (startplasma-x11) as desktop for...

Laravel Livewire App not working after clearing cache

My app just displays the html code in the browser. It worked fine. I was actually working on an update when I noticed the view didn't seem to refresh, so I cleared cookies in my browser. That...

Laravel Sanctum Vuejs verify email auto logged in

I have a Laravel 7 API with Sanctum authentication, VueJS (Nuxt SPA) frontend. After registration (Laravel auth scaffolding) the user must verify their email address. Generally the app+auth is...

CSRF token mismatch in scribe/laravel

I'm developing an REST API in laravel with middleware sanctum for authentication. I'm using Postman for testing and it's all ok, specially on login. But meanwhile, I'm already trying to...

Trouble when webscraping Leboncoin

I'm trying to scrape some informations on the car from leboncoin. I used jupyter notebook to overcome Datadome. Here's my first cell : import pandas as pd import numpy as np import time import...

SvelteKit on macOS Monterey 12.0.1 (Safari 15.1) - Running on localhost without https but Safari tries to load resources via https

Running a local dev server using SvelteKit on macOS Monterey 12.0.1. When opening the dev site in Safari 15.1, I'm getting errors for my images : Unsafe attempt to load...

Submitting React form to ASP.NET 6 Identity controller - where to get RequestVerificationToken from?

I'm working with an ASP.NET 6 app, generated with ASP.NET Core with React.js Visual Studio 2022 template. I've used Individual Accounts as Authentication Type when creating the project, so all...

CSRF verification failed after adding a filefield on model

I'm having a weird problem. So I have an application where my model was completely fine until I added a Filefield to it. Now I'm getting a CSRF-Verification failed error, even if I don't try to...