Session
Protocols & CommunicationEPC Gen2 session flag (S0-S3) controlling how long a tag remembers it has been inventoried, affecting re-read behavior.
Session Flags in EPC Gen2
Session flags are a tag-side state mechanism defined by EPC Gen2 that controls how long a tag remembers it has been inventoried. They are critical for managing tag behaviour in multi-reader environments and for controlling re-read rates during singulation. Understanding sessions is essential for any deployment involving portal readers, conveyors, or overlapping read zones.
The Four Sessions
epc-gen2/" class="glossary-term-link" data-term="EPC Gen2" data-definition="UHF RFID air interface standard." data-category="Standards & Protocols">EPC Gen2 defines four independent session flags — S0, S1, S2, and S3. Each flag has two states, A and B. When a reader begins an inventory round, it targets tags in state A (or B). After a tag is successfully singulated, it flips its flag to the opposite state. The key difference between sessions is how long the tag retains its flipped state before reverting:
| Session | Persistence | Typical Use |
|---|---|---|
| S0 | Volatile — reverts immediately when RF field is lost | Single-reader fast re-inventory |
| S1 | 0.5 to 5 seconds (tag-dependent) | Short-term de-duplication |
| S2 | 2+ seconds (indefinite while powered) | Multi-reader coordination |
| S3 | 2+ seconds (indefinite while powered) | Multi-reader coordination |
Practical Usage
Single reader, continuous scanning: Use S0 or S1. Tags revert quickly, so the reader can re-read the entire population every few seconds. This is ideal for cycle counting where an operator waves a handheld reader across a shelf.
Portal / conveyor: Use S2 or S3. When a tag passes through a portal reader and is read, it flips to state B and stays there. If the tag enters a second overlapping read zone, the second reader can be configured to target only A-state tags — effectively ignoring already-read items and reducing duplicate processing in middleware.
Multi-reader environment: Different readers can use different sessions simultaneously without interfering. Reader A inventories on S2, Reader B inventories on S3. Each reader's activity is invisible to the other's session flag, avoiding cross-reader contention.
Interaction with Anti-Collision
Session flags work hand-in-hand with the Q-algorithm and anti-collision mechanisms. By flipping tags out of the target state after successful reads, the effective tag population shrinks progressively during an inventory round, reducing collisions and accelerating throughput.
Common Pitfalls
Misconfigured sessions are one of the most frequent causes of poor RFID performance. Using S0 in a multi-reader environment causes duplicate reads and excessive middleware load. Using S2 or S3 in a single-reader handheld scenario causes tags to appear to "disappear" because their flags persist longer than the operator expects. Always match the session to the deployment topology and re-read requirements.
Related Content
RFID Tag Memory Planning Guide
Tag Selection…the kill function. Access password : Enables a secured session that permits lock/unlock operations and access to…
Warehouse RFID Deployment
Implementation…a 0.6 m read zone in 1.2 seconds — configure the reader's session and Q parameters to maximize singulation density during…
RFID Antenna Placement Guide
Implementation…a carton or pallet. Set antennas to alternate between two session flags so tags moving through the tunnel are read by all…
RFID with MQTT and IoT Protocols
Integration…application retransmission logic, and its persistent session feature buffers messages during disconnection. MQTT…
RFID Security Threats and Countermeasures
Security & Privacy…every cryptographic response — the response changes each session and cannot be reused. Relay attacks extend the effective…
Dense Reader Mode Optimization
Advanced Topics…value reduces slot collisions and improves throughput. Use Session 1 or 2 for persistent anti-collision across reader…
EPC Gen2v2 Deep Dive
Advanced Topics…at contract-packager with SGTIN-96, AES key (Suite 2 Session 0), and brand authentication URL in user memory Untrace…
RFID Reader Configuration Guide
Troubleshooting…cycles per tag at maximum conveyor speed. Inventory Session and Q Parameter The Gen 2 inventory protocol uses sessions…
よくある質問
The RFID glossary is a comprehensive reference of technical terms, acronyms, and concepts used in Radio-Frequency Identification technology. It is designed for engineers, system integrators, and project managers who work with RFID and need clear definitions of terms like EPC, backscatter, anti-collision, and ISO 18000.
Yes. RFIDFYI provides glossary definitions in 15 languages including English, Korean, Japanese, Chinese, Spanish, Portuguese, Hindi, Arabic, French, Russian, German, Turkish, Vietnamese, Indonesian, and Thai.