Re: Header() redirect

From: Date: Sat, 01 Dec 2001 02:31:02 +0000
Subject: Re: Header() redirect
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10684@lists.php.net to get a copy of this message
If you need another option to redirect use the meta refresh tag in HTML, that is what I use. I set the time to 2 seconds or less "Mike Flynn" <mike@mikeflynn.net> wrote in message news:5.1.0.14.2.20011130093002.00a965f0@mail.mikeflynn.net... > Which session library files do you mean? Sessions should never create the > headers -- there's no reason for them to do so. There's nothing in the > page itself that sessions need care about and nothing they can affect / be > affected by. Are you sure that the headers aren't coming from somewhere > else? A bit of extranneous code you've written / a pre-existing error message? > > I use sessions all the time and header redirections work fine.. > > -Mike > > At 11:50 AM 11/30/2001 +0100, Martin.Andrew wrote: > > >Is there another function that does the same job as Header() > > > >I'm creating a forum, and when a user sends a message I call a function that > >checks name, password etc, then updates the DB and then calls the Header > >function to redirect the page. > > > >This would be fine except I am also using session library files that have > >the html headers already created, thus, while the redirects (it still > >redirects) I get the standard > >Warning: Cannot add header information - headers already sent by .... > >message, I know where the problem is but can't solve it without changing > >many function of the forum functionality. > > > >I have tried using plain javascript and this does work but there is again a > >split second delay that is very annoying. > > > >Thanks. > > >

« previous php.windows (#10684) next »