fix(session): use deleteChunkedCookie in clearSession for proper cookie removal#1318
Conversation
…ie removal clearSession was using setChunkedCookie with an empty string value, which sets the cookie to "" but does not instruct the browser to delete it (no Max-Age=0 or past Expires). The browser would retain the empty cookie until the session ends. Now uses deleteChunkedCookie which correctly sets Max-Age=0, telling the browser to remove the cookie immediately. This also properly handles chunked session cookies by deleting all chunk cookies. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request modifies session cookie clearing behavior by replacing the practice of setting an empty value with explicit cookie deletion using a new utility function. A corresponding test validates that the cookie deletion directive (Max-Age=0) is properly triggered. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
Summary
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
Tests