Sessions in object oriented code



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.


Relevant Pages

  • Newbie needs help with asp
    ... I’m looking for a Registration / Join In script in asp and MS Access. ... the registration form should work like this - users will fill the form (First ... an email will be sent to user with an activation link. ...
    (microsoft.public.scripting.vbscript)
  • Radio button/Checkbox value passing
    ... I have a simple 3 page registration form. ... validation" script and one "insert into database" script. ... (When I say bounces, I mean logically. ... customer ever sees is the registration form, ...
    (comp.lang.php)
  • Re: How to call perl with in-line contents?
    ... > this easily by creating a seperate perl script. ... I should not write a seperate file to do this processing. ... > I am calling the perl from a shell script. ...
    (perl.beginners)
  • Re: How to call perl with in-line contents?
    ... >by creating a seperate perl script. ... >write a seperate file to do this processing. ... >I am calling the perl from a shell script. ...
    (perl.beginners)
  • RE: How to call perl with in-line contents?
    ... > this easily by creating a seperate perl script. ... I should not write a seperate file to do this processing. ... > I am calling the perl from a shell script. ...
    (perl.beginners)