You're not still using session_register() are you?
session_start();
$_SESSION['variable']=$data_on_first_page;
session_start();
$data_on_second_page = $_SESSION['variable'];
Is so much simpler.
php.ini
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning seperately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.