> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heyquiz.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# Ending the session

> Results summary and closing the quiz

## When does a session end?

A quiz session ends when:

* All questions have been answered
* Host manually ends the session
* All participants left the quiz (session expires)

## End screen

### For host

After the last question you see:

| Element                | Description         |
| ---------------------- | ------------------- |
| **Podium**             | Top 3 participants  |
| **Full ranking**       | All positions       |
| **Session statistics** | Summary numbers     |
| **Action buttons**     | Export, new session |

### For participants

Participants see:

* Their final position
* Points earned
* Comparison with others
* Podium (top 3)

## Winners podium

<Steps>
  <Step title="Third place">
    Bronze medalist appears first.
  </Step>

  <Step title="Second place">
    Then the silver medalist.
  </Step>

  <Step title="First place">
    Finally the gold winner with confetti effect.
  </Step>
</Steps>

<Tip>
  The podium builds tension - wait a moment between each place!
</Tip>

## Session statistics

### General

| Statistic                  | Meaning                  |
| -------------------------- | ------------------------ |
| **Number of participants** | How many took part       |
| **Average score**          | Average points           |
| **Best score**             | Maximum points achieved  |
| **Duration**               | How long the quiz lasted |

### Per question

* Percentage of correct answers
* Hardest question
* Easiest question
* Average response time

## Team mode

If team mode was enabled:

### Team ranking

* Separate podium for teams
* Sum of member points
* MVP of each team

### Switching views

You can show:

* Team ranking
* Individual ranking
* Both alternating

## Exporting results

### Available formats

<CardGroup cols={3}>
  <Card title="PDF" icon="file-pdf">
    Printable report with ranking and statistics.
  </Card>

  <Card title="Excel" icon="file-excel">
    Detailed data for analysis.
  </Card>

  <Card title="JSON" icon="code">
    Raw data for integration.
  </Card>
</CardGroup>

### How to export?

1. On the end screen click **"Export results"**
2. Choose format (PDF/Excel/JSON)
3. File will be downloaded

<Info>
  Reports are also available later in the **"Reports"** tab on the dashboard.
</Info>

## What's next?

### On the end screen

You have options:

| Button          | Action                  |
| --------------- | ----------------------- |
| **New session** | Run the same quiz again |
| **Edit quiz**   | Go to editing           |
| **Dashboard**   | Return to main panel    |
| **Export**      | Download results        |

### Closing the session

After ending:

* Session is archived automatically
* Data is available in reports
* Participants can leave the page

## Participants after session

### What do they see?

* Congratulations screen
* Their position and points
* Option to join a new session

### Automatic redirect

<Info>
  Participants may be redirected to the start page after a set time.
</Info>

## Data retention

### How long is data stored?

| Data                 | Retention period |
| -------------------- | ---------------- |
| **Session results**  | 12 months        |
| **Answer details**   | 30 days          |
| **Participant data** | 30 days          |

<Warning>
  After the retention period, data is automatically deleted in compliance with GDPR.
</Warning>

### Export before deletion

If you need data longer:

1. Export results to PDF/Excel
2. Save locally
3. Archive as needed

## Troubleshooting

<AccordionGroup>
  <Accordion title="End screen doesn't display">
    * Refresh the page
    * Check if all questions were completed
    * Manually click "End quiz"
  </Accordion>

  <Accordion title="Participant missing from ranking">
    * Participant may have disconnected
    * Check if they answered questions
    * Data is in the detailed report
  </Accordion>

  <Accordion title="Export doesn't work">
    * Check internet connection
    * Allow file downloads in browser
    * Try a different format
  </Accordion>
</AccordionGroup>

## Next steps

<CardGroup cols={2}>
  <Card title="Reports" icon="chart-pie" href="/en/reports/overview">
    Detailed results analysis
  </Card>

  <Card title="Starting a session" icon="play" href="/en/sessions/starting">
    Begin a new quiz
  </Card>
</CardGroup>
