I found the cause of this problem.
In the .htaccess file, I wrote a line for redirection:
RewriteRule ^ http://mysite.com{REQUEST_URI} [R=301,L]
If I delete the above line from a file, I can receive POST fields from the PG server, but I lose the SESSION DATA data stored before the PG started, it contains information about the reservation. These sessions cannot be displayed on the response page because the server generates a completely new session from the response page.
I found one alternative solution to this problem:
I use the following code on all pages that require a session like:
$lifetime=60*30; session_set_cookie_params ( $lifetime , '/', '.mysite.com');
After adding the code above session_start(); .
Now I can get both POST data from PG, and also save SESSION values.
However, I think this is not an ideal solution for this problem. If someone can offer any SERVER configuration for URL redirection and maintain SESSION values ββafter REDIRECTION, that would be great. Thanks to everyone :-)
source share