Re: [PHP] Sessions in object oriented code
- From: dafneves@xxxxxxxxx ("Diogo Neves")
- Date: Fri, 31 Oct 2008 17:28:04 +0000
Well, without code is dificult to say, but session_start() don't send
headers, then possible u have a space after a "?>" or @ least this is the
common error...
On Thu, Oct 30, 2008 at 11:47 PM, Ben Stones <stonesben@xxxxxxxxxxxxxx>wrote:
Hi,
Hope I can explain this as easily as possible, basically I am using both
cookies and sessions for my script, whereby the user is allowed to choose
which method they want to login with. Problem for me is removing the
registration form, etc., from those that are logged in. The thing is the
form is in its own method in a seperate file, and its called within HTML
code so obviously if I included session_start() in the seperate include
file
where the methods/classes are, etc., I'd get a "headers already sent"
error.
So is there a solution to this?
Thanks.
--
Thanks,
Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt
- References:
- Sessions in object oriented code
- From: "Ben Stones"
- Sessions in object oriented code
- Prev by Date: Re: [PHP] Count the Number of Elements Using Explode
- Next by Date: Re: Fwd: [PHP] Count the Number of Elements Using Explode
- Previous by thread: Re: [PHP] Sessions in object oriented code
- Next by thread: Suggestions for ECommerce?
- Index(es):