[PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Weerapong Sirikanya
I have problem about using session with php that have version newer than 4.03pl1. this is the test code. - test_session.php - ?php session_start(); session_register("abc"); print "\$PHPSESSID - $PHPSESSIDbr"; $abc = 1; ? A HREF="test_session2.php"test_session2/A

Re: [PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Renze Munnik
Hi, Try: session_start_start(); for a change. If you don't it will never work. Not even with versions older than 4.03pl1. RenzE. On Fri, Mar 23, 2001 at 07:03:37PM +0700, Weerapong Sirikanya wrote: I have problem about using session with php that have version newer than 4.03pl1. this is

Re: [PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Renze Munnik
Oops Should be: session_start(); ofcourse, instead of session_start_start(); RenzE. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] session don't work with php that have version more than 4.03pl1

2001-03-23 Thread Chris Lee
you have to register the variable after it is set, not before. also only register the variable once, dont keep re-registering it, some builds ie php-4.0.5 (snap) doesnt like re-registering vars (sometimes). ?php include_once('time.egn'); if ( isset($PHPSESSID) ) session_id($PHPSESSID);