# Session and Rate Limiting Documentation Updates

Canonical URL : https://adonisjs-signal.jrmc.dev/insights/3f9bac15-8837-4975-be8d-1d268f806303
Source release or documentation date : 2026-11-19T10:23:03.000Z
Category : documentation | Developer impact : medium
Affected packages : @adonisjs/session, @adonisjs/limiter, @adonisjs/events, @adonisjs/inertia, edge\.js

Documentation for AdonisJS has been enhanced with new guidance on flashing custom input errors in sessions and a new dry run mode for rate limiting\. The session guide explains how to flash field\-specific errors without validation exceptions using \`flashInputErrors\(\)\`\. The rate limiting guide introduces a dry run mode that counts requests exceeding limits without rejecting them, allowing measurement of limits on real traffic before enforcement\. The Edge template engine documentation now references flashing input errors, and the events documentation clarifies the \`limit:exceeded\` event includes a \`dryRun\` property indicating dry run mode\.

## What this means for your code

Developers can now flash custom input errors in sessions to improve user feedback without triggering validation exceptions\. They can also test rate limits in production\-like conditions without blocking users by using the dry run mode\. Event listeners for rate limiting should handle the new \`dryRun\` property to distinguish between actual rejections and dry run notifications\.

## Suggested actions

- Use \`session\.flashInputErrors\(\)\` to flash custom input errors without validation exceptions\.
- When defining rate limiters, use the \`dryRun\(\)\` method to enable dry run mode for testing limits\.
- Listen for the \`limit:exceeded\` event and check the \`dryRun\` property to differentiate dry run events from actual rejections\.
- Update Edge templates to use the \`@inputError\` tag for displaying flashed input errors\.
- Consider configuring environment variables to toggle dry run mode for rate limiting dynamically\.

## Updated documentation

- [Session](https://docs.adonisjs.com/guides/basics/session)
- [Rate limiting](https://docs.adonisjs.com/guides/security/rate-limiting)
- [Edge helpers](https://docs.adonisjs.com/reference/edge)
- [Events](https://docs.adonisjs.com/reference/events)

## Original sources

- [v7\-docs: 4 documentation file\(s\)](https://github.com/adonisjs/v7-docs/compare/b6bb8e7e7e2099215c3faf160ffa4aed0155e9c3...3e684175d8912d258a6fcbe3731e41d2fb1d3656)

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.
