[PHP] sessions in php4
hi all, i'm using a php4.0.6 with apache on win2k. when i register a session and immediately if i redirect to another page the session seems not to be registered. eg. when i go to the new page i c that the session has not been reigstered. but in case if i dont redirect from php rather use a html redirection code like "click here to redirect" then it worked. why ? click here to redirect(this worked out ) any suggestions ? /sagar
Re: [PHP] sessions in php4
Hi, Well probably because you've got that automatic PHPSESSID thing carryover in your php.ini which through your situation indicates that it doesn't work in a header() so either you'll put cookies on, or use PHPSESSID. = * Know more about me: http://www.geocities.com/mimodit * __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com -- 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 PROTECTED]
Re: [PHP] sessions in php4
I always using session together with header() and never got a problem. Here's something might be a hint to you: http://..."; // in the "new location" ?> Alex - Original Message - From: "sagar N Chand" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Monday, October 01, 2001 9:54 PM Subject: [PHP] sessions in php4 hi all, i'm using a php4.0.6 with apache on win2k. when i register a session and immediately if i redirect to another page the session seems not to be registered. eg. when i go to the new page i c that the session has not been reigstered. but in case if i dont redirect from php rather use a html redirection code like "click here to redirect" then it worked. why ? click here to redirect(this worked out ) any suggestions ? /sagar -- 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 PROTECTED]