php: Save the entire $_POST variable in the session

Posted by nute on Stack Overflow See other posts from Stack Overflow or by nute
Published on 2010-03-12T01:21:37Z Indexed on 2010/03/12 1:27 UTC
Read the original article Hit count: 264

Filed under:
|
|

Is this valid:

$_SESSION['pictures']['rateAlbum']['_POST'] = $_POST;

I want to save all of the POST data in the session in one shot.

edit: oh and what about the other way around:

$_POST = $_SESSION['pictures']['rateAlbum']['_POST'];

© Stack Overflow or respective owner

Related posts about php

Related posts about post