Re: Ye old $_SESSION variables :)

From: Date: Tue, 14 Mar 2006 20:21:09 +0000
Subject: Re: Ye old $_SESSION variables :)
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-41492@lists.php.net to get a copy of this message
Try to make a small new script that only contains a form and a session. Then try a from with the same field names as the variable names. name='test' => $_SESSION['test']. When the session data is overwritten by the second try, registerglobals is switchd on. The thing you can do then is to rename your form fields. I use: name='in[YourFieldName]' This outputs an array: $_POST => in => YourFieldName = 'bar' Adriaan Op Sun, 12 Mar 2006 15:17:40 -0500, schreef Ron Piggott (PHP): > I am wondering if > > <form method=POST > > causes the > > session_id(); > > to change or be reset. > > Some how my $_SESSION[''] variables are "dumping" when I use the POST > command above. > > More importantly I am not sure what to do about it. > > Any ideas? > > Ron

« previous php.db (#41492) next »