I'm looking to set specific cookie configurations for all users in Microsoft Edge. I know that cookies are user-specific, not device-specific, so I'm wondering if there's a way to deploy them effectively. I can add the cookies in Developer Tools, and they work as intended. Here are the two settings I need to adjust:
1. Name: __Auth_Preference
- Value: true
- Domain: mydomain.co.uk
- Secure: Unchecked
- HttpOnly: Unchecked
- SameSite: Blank
2. Name: __Auth_AAL3_Specific
- Value: WebAuthn
- Domain: mydomain.co.uk
- Secure: Checked
- HttpOnly: Unchecked
- SameSite: Strict
I'm considering using a PowerShell script that runs as a scheduled task upon user login since we have Intune available. Any suggestions on how to achieve this?
4 Answers
Deploying cookies in the way you're suggesting isn't how it typically works. Cookies are designed to be temporary session objects. You might be overcomplicating it; could you clarify what problem you're trying to solve? If it's authentication, using client-side certificates might be a better approach.
Deploying cookies directly to users isn't feasible. Have you thought about using Group Policy Objects (GPO) for browser configurations instead? It seems you're gambling with security by trying to deploy cookies.
It's important to note that cookies are not really something you can just push to users. They are more like session states created by the application. If setting them through Developer Tools works, the right approach is usually to tweak settings on the server side instead of trying to manually deploy cookies. Tools like Intune can control browser behaviors, but be careful with fabricating cookies as it can potentially create security risks.
You might be able to manage this through policy settings. Check out this link for guidance on configuring Edge using Intune: [Setting policies in Edge with Intune](https://learn.microsoft.com/en-us/deployedge/configure-edge-with-intune).

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures