You are here: Re: Question about sessions_start and header()? « PHP Programming Language « IT news, forums, messages
Re: Question about sessions_start and header()?

Posted by Jerry Stuckle on 07/25/06 11:29

bobmct wrote:
> Please help me clear the cobwebs out???
>
> I pretty much use session_start(); at the start of most/all of my PHP
> programs and use the $_SESSION array to store control variables. This
> technique seems to work quite well and is easily manages.
>
> However, now I've come up to a situation where it's biting me and I need
> some other ideas as to how to get around my situation.
>
> In my PHP program I am in a logic block that requires to next page to be
> delivered from a different server. If this were a link then I would use
> the "href=" tag and when the user clicked on it control would go as
> expected.
>
> However, in this case I need control to go seamlessly and automatically. So
> I thought I would use the header(location:) function and guess what? It
> doesn't work because I have sessions and apparently sessions does something
> that causes the headers to be disallowed.
>
> I've evaluated trying to eliminate the sessions but this technique really
> works so well and exactly was it is supposed to. So I am thinking that I
> cannot be the only one whose come up against this before. Therefore, what
> are OTHERS doing to accomplish this requirement (i.e.: using sessions and
> still being able to automatically/seamlessly transition to a different
> server without additional user input)?
>
> I am most anxious to read what others are doing.
>
>
> Thanks,
>
> Bob
>
>

Bob,

Sessions shouldn't be a problem. I use sessions and redirect at times,
and it works.

Ensure you aren't sending something else (even white space) out before
the header() call.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация