---
title: "Save values to a session"
manual: "Powermail"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/in2code/powermail:save-values-to-a-session@13.4"
source: "ForAdministrators/BestPractice/SaveSession.md"
rendered: "2026-12-01T17:54:58+00:00"
---

# Save values to a session {#save-values-to-a-session}

You can save values after a submit to a session. This could be helpful if a user should not fill out a form field twice. So a form could be prefilled with values that a user submitted before.

You can also use TypoScript stdWrap functionallity to manipulate those values.

See following example:

```
plugin.tx_powermail.settings.setup {

    # Save submitted values in a session to prefill forms for further visits. Define each markername for all forms.
    saveSession {
        # Method "temporary" means as long as the browser is open. "permanently" could be used together with a frontend-user session. If method is empty, saveSession is deactivated.
        _method = temporary

        firstname = TEXT
        firstname.field = firstname

        lastname = TEXT
        lastname.field = lastname
    }
}

```
