We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Saving GET/POST variables on redirection


When I am using redirections: $this->response->redirect('signin');

Is there any way to save GET and POST variables?


can you show us more of you code?

edited Jul '14

Signin page:

<form action="/phalcon/signin/validate" method="post">
        <input type="text" id="user_name" name="user_name">
        <input type="password" id="password" name="password">
        <input type="submit" value="Signin">

validateAction in signin controler

    public function validateAction()
        $user_name = $this->request->getPost("user_name", "string", null);
        $password = $this->request->getPost("password", "string", null);

        if ($this->validateLoginn())
                Here I need to forward POST data to indexAction of signin controler


may be using persistent

I resume this thread because i am interested too....some ideas? :)