tags:

views:

36

answers:

3

Hi guys. is it possible to post a session array from one page to another and if so how :D

regards

+1  A: 

You need to keep the session alive with session_start();, and remember NOT to print out any content before that. Do print_r($_SESSION); to see what's available after you've set some session variables on a prior page.

And yes that's how they were designed by nature.

meder
+1  A: 

Session variables are transferred by default if you use session_start()

Read here: http://php.net/manual/en/function.session-start.php

dfilkovi
+1  A: 

By definition, that's what sessions are supposed to do. I suggest you give the following a quick read, starting from the introduction:

http://www.php.net/manual/en/book.session.php

karim79