Re: sessions in php4

From: Date: Wed, 10 Oct 2001 09:50:22 +0000
Subject: Re: sessions in php4
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70614@lists.php.net to get a copy of this message
I *think* there is a known bug in IIS : it does not allow you to send a cookie and a redirect in the same http header. Your problem is may be near this one. You would try to register your session variable in a previous page. Or a possible workaround is to redirect using html meta tags ? Hope it will help you Best regards Philippe "Sagar N Chand" <sagarchand@yahoo.com> a écrit dans le message news: 000a01c15165$2de56680$bdd1d6d2@inferno... this is second or third time i'm mailing this. please help me. 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. <? session_start(); $value = 908; session_register("value"); header("location : new location"); ?> 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 ? <? session_start(); $value = 908; session_register("value"); ?> <a href="newlocation">click here to redirect</a> (this worked out ) any suggestions ? /sagar

« previous php.general (#70614) next »