Possible Duplicate:
Session lost after page redirect in php
Help, I store a sting value of length 771 in a session variable. Problem is when I do a page redirect, the session variable becomes empty, the string value is lost. Can anybody help? code example:
$_SESSION['text'] = $text; //$text is a string of length 771
header('location:index.php');
exit;
I already have session_start() on every page that uses sessions. The problem is coming from the length of the string. When I store a string of shorter length in the session variable, I am able to successfully retrieve it when I redirect. However, once the length of the string is up to 500, I am no longer able to retrieve it