Home / Blog / How to add the message with a redirect?
How to add the message with a redirect?

How to add the message with a redirect?

  • Anna KoshevaAnna Kosheva
  • May 12, 2022

    May 12, 2022

Topics from the video:

  • The session is used to transfer messages from one page to another
  • The session_start() function and $_SESSION global array variable to set messages
  • How to pass validation messages and show it inside the user register form
  • How to render errors in the form

Note: There is no Magento 2 topic discussed in the video.

Users often need to transfer messages that they receive to other people. This action can be fulfilled in two ways – “Forward” and “Redirect”. While forwarding, the source message becomes an attached file and can be supplemented by additional text from the forwarding user. Redirecting is different, because the source message is not modified in any way – the final recipient gets it the same way as the one who redirects it. It is worth mentioning that if a message is forwarded, the user who forwards it (and not the initial author of the message), is indicated as its sender, whereas a redirected message is shown to the final recipient as sent by the initial sender (and not the one who redirects it). We’ll explain how to recognize a redirected message later.

So, how to add a message with a redirect in Magento 2? Watch the video!

  • Anna KoshevaAnna Kosheva
  • May 12, 2022

    May 12, 2022

Sign up and don't miss our awesome Mage Mastery lessons and updates!

Related Posts

Magento 2 Quick Start: Installation using Composer

The tutorial is for those who are looking to get a experience on how to install Magento 2 Open Source on a local development environment. A step-by-step video guide for developers.

CMS Block and Page in Magento 2

In this tutorial we will reveal the difference between CMS Page and Block in Magento 2.

How to Configure Varnish 6 and nginx with ssl for Magento 2

In this tutorial, we are going to set up and configure Varnish Cache with nginx and SSL (https) certificate for a Magento 2 Open Source.
If you like this blog post, you may want to watch
Start: March 28, 2021
Max Pronko
Web Icon20 lessons
Clock Icon15 hours
Adobe Certified Professional — Magento Commerce Developer Study Group is an 10-week (1.5 hours/week) instructor-led study group. This study group will help PHP and JavaScript developers evaluate their readiness and prepare for the Adobe Certified Professional — Magento Commerce Developer exam.
Start: March 15, 2021
Max Pronko
Web Icon80 lessons
Clock Icon15 hours
Magento 2 Development Workshop is for those who want to practice and learn how to implement Magento 2 extensions. During the workshop, you will have lots of homework, practical exercises, video lessons, and theory that will give you the required skills for your Magento 2 job.
2022 © Made with ❤ by Max Pronko