Re: [PHP] Sessions in object oriented code

2008-10-31 Thread Yeti
I can't really understand that. Not sure if you understand my problem properly (if I've not explained properly). Anyone can give me some solutions please? Well as long as you don not provide any code it's all just wild guesses. What I tried was to show you a way of simply preventing the HTML

Re: [PHP] Sessions in object oriented code

2008-10-31 Thread Diogo Neves
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 [EMAIL PROTECTED]wrote: Hi, Hope I can explain this as easily as possible, basically I am

[PHP] Sessions in object oriented code

2008-10-30 Thread Ben Stones
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

Re: [PHP] Sessions in object oriented code

2008-10-30 Thread Yeti
OK I guess it's somehow like this .. form ?php if (isset($_POST['submit'])) { include('sessions.php'); // include sessions.php } ? !-- form innerhtml -- /form now this of course is something very bad to do and it wont work. One way to prevent markup from being outputted is using ob_buffer() [1]

Re: [PHP] Sessions in object oriented code

2008-10-30 Thread Ben Stones
Hi, I can't really understand that. Not sure if you understand my problem properly (if I've not explained properly). Anyone can give me some solutions please? Thanks. 2008/10/31 Yeti [EMAIL PROTECTED] OK I guess it's somehow like this .. form ?php if (isset($_POST['submit'])) {

Re: [PHP] Sessions in object oriented code

2008-10-30 Thread Ashley Sheridan
On Fri, 2008-10-31 at 00:33 +, Ben Stones wrote: Hi, I can't really understand that. Not sure if you understand my problem properly (if I've not explained properly). Anyone can give me some solutions please? Thanks. 2008/10/31 Yeti [EMAIL PROTECTED] OK I guess it's somehow