A
A
Adik Izat2020-05-21 16:03:42
PHP
Adik Izat, 2020-05-21 16:03:42

How to pass variables from HTTP_REFERER to REQUEST_URI?

Good afternoon forum users! In general, let's say we are in a personal account (url: "/cabinet"). Then click on "Logout" and go to the page with the url "/logout". All sessions and cookies are reset there, then it redirects to the login page with the url "/login".

How to make it so that when opening the /login page, the user will see the notification "You have successfully logged out of the account" or, if an error occurs, the desired error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2020-05-21
@JaxAdam

1. Redirect to /login?msg=You+success...
2. Through session

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question