Sessions
Sessions let you organize captured traffic into separate, named containers. Instead of having all captured traffic in a single, ever-growing list, you can create distinct sessions for different debugging tasks, testing scenarios, or time periods. Switch between sessions without losing data, and export or delete sessions when you are done.
What is a Session?
A session is a named collection of captured traffic entries. Think of sessions as folders or workspaces for your network traffic:
- Each session has its own traffic list
- Traffic is captured into the active session
- You can create, switch, rename, and delete sessions
- Sessions persist across NectoProxy restarts
TIP
Using sessions keeps your work organized. Instead of scrolling through thousands of unrelated requests to find what you need, create a new session for each debugging task and keep your traffic focused.
Creating Sessions
Creating a New Session
- Click the Sessions button in the NectoProxy toolbar
- Click New Session
- Enter a descriptive name for the session
- The new session becomes the active session immediately
Naming Conventions
Choose session names that describe the purpose or context of the captured traffic. Good examples:
| Session Name | Purpose |
|---|---|
Login Flow Investigation | Debugging authentication issues |
API v2 Migration Testing | Comparing old and new API behavior |
Performance Baseline 2025-01-15 | Capturing baseline performance metrics |
Bug #1234 Reproduction | Reproducing a specific bug report |
Security Review - Checkout | Security scanning the checkout flow |
Mobile App Traffic | Traffic from a mobile application |
Default Session
When NectoProxy starts, a default session is created automatically. You can rename the default session or create new ones as needed. If you do not create any sessions explicitly, all traffic is captured into the default session.
Switching Between Sessions
Click on any session in the sessions panel to make it the active session. The traffic list immediately updates to show the entries from the selected session.
Key behaviors when switching:
- Captured traffic is always added to the active session
- Switching sessions does not delete or modify traffic in other sessions
- You can quickly switch back and forth between sessions to compare traffic
- The previously active session's traffic remains intact
WARNING
When you switch to a different session, new traffic is captured into the newly active session. If you need to capture traffic into a specific session, make sure it is the active session before starting your test.
Active Session Indicator
The currently active session is clearly indicated in the NectoProxy UI:
- The session name is displayed in the toolbar
- The active session is highlighted in the sessions panel
- A visual indicator (such as a dot or bold text) marks the active session in the list
This ensures you always know which session is receiving new traffic.
Session Statistics
Each session displays summary statistics so you can quickly assess its contents:
| Statistic | Description |
|---|---|
| Request Count | Total number of HTTP requests captured in the session |
| Total Bytes | Combined size of all request and response bodies in the session |
| Created | When the session was created |
| Last Activity | When the most recent request was captured |
Example: Sessions Panel View
Sessions
========
* Login Flow Investigation (active)
42 requests | 1.2 MB | Last: 2 min ago
API v2 Migration Testing
187 requests | 15.4 MB | Last: 1 hour ago
Performance Baseline 2025-01-15
523 requests | 48.7 MB | Last: Yesterday
Bug #1234 Reproduction
12 requests | 340 KB | Last: 3 days agoManaging Sessions
Renaming a Session
- Right-click on the session in the sessions panel
- Select Rename
- Enter the new name
- Press Enter to confirm
Deleting Sessions
- Right-click on the session
- Select Delete Session
- Confirm the deletion
WARNING
Deleting a session permanently removes all captured traffic data within it. This action cannot be undone. Export important sessions before deleting them.
You cannot delete the active session if it is the only session. Create a new session first, switch to it, and then delete the old one.
Clearing a Session
To remove all traffic from a session without deleting the session itself:
- Make the session active
- Click Clear in the traffic list toolbar
- The session's traffic list is emptied, but the session remains
This is useful for starting a fresh capture within an existing session.
Exporting Sessions
Sessions can be exported for archiving, sharing with teammates, or importing into other tools.
Export as HAR
Export all traffic in a session to a HAR file:
- Right-click on the session
- Select Export as HAR
- Choose a save location and filename
- The entire session's traffic is saved as a HAR 1.2 file
What is Included in Exports
| Data | Included |
|---|---|
| All request/response pairs | Yes |
| Headers and bodies | Yes |
| Timing data | Yes |
| Annotations | Yes |
| Session name and metadata | Yes |
Practical Workflows
Workflow 1: Bug Investigation
- Create a session named
Bug #456 Investigation - Reproduce the bug while capturing traffic
- Annotate the key requests with your findings
- Share by exporting the session as HAR and attaching it to the bug ticket
- Keep the session until the bug is resolved for reference
Workflow 2: Before/After Comparison
- Create a session named
Before Deploy v2.5 - Capture traffic from the current version
- Deploy the new version
- Create a new session named
After Deploy v2.5 - Capture traffic from the new version
- Switch between sessions to compare behavior
- Use Request Comparison across sessions
Workflow 3: Organized Development
Maintain separate sessions for different parts of your development work:
| Session | Purpose |
|---|---|
Frontend Dev | Traffic while developing the frontend |
API Testing | Direct API call testing |
Third-Party Integration | Traffic to/from external services |
Performance Profiling | Measuring response times and payload sizes |
Switch between sessions as you move between tasks throughout the day.
Workflow 4: Team Collaboration
- Each team member creates sessions for their work
- When an issue is found, the session is exported as HAR
- Other team members import the HAR into their own NectoProxy instance
- The original annotations and context are preserved
Session Lifecycle
Create Session
|
v
Set as Active ----> Capture Traffic
| |
v v
Switch Away Traffic Stored
| |
v v
Switch Back Export (HAR)
| |
v v
Clear or Delete Share with TeamInteraction with Other Features
| Feature | Interaction |
|---|---|
| Traffic Inspection | Shows traffic from the active session only |
| Rules Engine | Rules apply regardless of which session is active |
| Breakpoints | Breakpoints apply regardless of which session is active |
| Search | Filter bar searches within the active session; global search can search across all sessions |
| Dashboard | Dashboard displays statistics for the active session |
| Annotations | Annotations are stored per-entry within their session |
| HAR Export | Exports the selected session's traffic |
INFO
Sessions are stored locally in NectoProxy's data directory. They persist across proxy restarts and are available until explicitly deleted. Large sessions with many captured entries consume disk space proportional to the amount of captured traffic data.