#!/bin/bash # Create a demonstration HTML file to visualize cookie isolation problems # This script generates an HTML file that shows which cookies are visible across deployments echo "Creating cookie isolation visualization tool..." # Define HTML content cat > /home/whitex/dev/github/learnhouse/cookie-isolation-demo.html << 'EOL' LearnHouse Cookie Isolation Test

LearnHouse Cookie Isolation Test

This tool helps visualize cookie isolation between DEV and LIVE LearnHouse deployments. It will help you identify if cookies from one deployment are visible to the other, which could lead to session contamination.

1. Set Test Cookies

First, set test cookies on both deployments:

2. Test Cookie Isolation

Now check if cookies are properly isolated between deployments:

Results

Results will appear here after running tests...

EOL echo "Cookie isolation demonstration tool has been created at:" echo "/home/whitex/dev/github/learnhouse/cookie-isolation-demo.html" echo echo "To use this tool:" echo "1. Open the HTML file in a browser" echo "2. Click 'Set DEV Cookie' and 'Set LIVE Cookie' buttons" echo "3. Click 'Test Cookie Isolation' to see if cookies are properly isolated" echo echo "This tool demonstrates visually whether the cookie domains are properly isolated between deployments."