Bug #38901
Multistep Form with expired session
| Status: | Resolved | Start date: | 2012-07-12 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 0 |
Description
If you are on a multistep form and the session is expired, you are not able to submit the form. You are always redirected to the step 1.
Steps to reproduce:- Go to the multistep example http://examples.typo3-formhandler.com/multistep-forms/job-application/
- Fill the fields and go to step 2
- let the session expire (simply clear your cookies)
- submit the form
- you will be redirected to step 1 (which is correct)
- if you try to submit this, you will always get back to step 1
Associated revisions
Prevent empty form if session information is lost (fixes #38901)
Prevent empty form if session information is lost (fixes #38901)
History
Updated by Sascha Egerer 10 months ago
- File issue_38901.patch added
- % Done changed from 0 to 60
attached patch
Updated by Sascha Egerer 10 months ago
Just discovered some more issues if you delete the session cookie...
Updated by Sascha Egerer 10 months ago
- File issue_38901_v3.patch added
I've just invested some more time in to debugging this session stuff and created a new patch.
Here are the things that i have changed- go to your form page
- fill the fields
- delete the PHP-Session cookie
- old behavior: you will be redirected to the first step and all field are cleared (which is not very nice)
- new behavior: you will be redirected to the second step if the validation is successfull. if the field validation fails, you will be redirected to step one with the validation errors
- go to the form page
- submit the first step with valid data
- you are now on the second step
- delete the session cookie
- submit the second step
- old behavior: you will be redirected to the first step and all fields are empty because the information for step 1 does not exist anymore
- new behavior: you will also be redirected to the first step and all fields are empty. but you will see the validation errors because you have to fill the fields first
What do you think about that?
Updated by Reinhard Führicht 6 months ago
- Status changed from New to Resolved
- % Done changed from 60 to 100
Applied in changeset r67839.