| Variable | Value |
|---|---|
| request.routing_context | main |
| request.matchId | 0 |
| request.database_layer | main |
| Variable | Value |
|---|---|
| session.userid | Not Set |
| session.username | Not Set |
| session.current_match_id | 0 |
| session.global_account_id | 0 |
| session.loginflag | Not Set |
| Variable | Value |
|---|---|
| Application.ds | gcdm |
| variables.DS | gcdm |
| variables.DS_GC | gcdm |
Current routing context: main
To test match routing, access this page with a match_id parameter or ensure you have a match in your session.
The issue was in the onRequest function in application.cfc. The switch statement was missing a case for 'match' routing context.
When users joined a match, the routing_context was set to 'match' but the switch statement didn't handle it, causing the request to fail and users to be logged out.
The fix adds a 'match' case to the switch statement that breaks out of the switch and allows the match routing code below to execute properly.