Re: Quick Sessions ?

From: Date: Fri, 04 Apr 2003 20:41:40 +0000
Subject: Re: Quick Sessions ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-142434@lists.php.net to get a copy of this message
At 22:38 04.04.2003, Anthony said: --------------------[snip]-------------------- >nope, same host I actually call the file by sending this : >header("Location: ../index.htm"); >and I loose the session. --------------------[snip]-------------------- You've disabled cookies, either in your browser, or in php.ini completely (for sessions, that is). Make your redirection like this: header('Location: ../index.htm' . (SID ? '?' . SID : null)); I assume that your setup has "htm" files parsed by PHP. Otherwise - where should the session data go to if you're redirecting to plain html? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#142434) next »