Jump to content


Photo

I cannot start a session or edit headers


  • Please log in to reply
4 replies to this topic

#1 ksg

ksg

    Newbie

  • Member
  • Pip
  • 3 posts
  • Location:Singapore
  • Wiki ID: sg
  • Main OS: Windows XP

Posted 24 August 2007 - 10:41 PM

Whenever I put "session_start();" in my php codes, I always encounter these warnings:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at W:\www\easyboard\logout.php:4) in error location

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at W:\www\easyboard\logout.php:4) in error location

I also cannot store variables in $_SESSION...

and when I put "header("Location: url");", I encounter

Warning: Cannot modify header information - headers already sent by (output started at W:\www\easyboard\logout.php:4) in error location

Has it got to do with Uniform Server?

If possible, someone please explain this script to me, or recomend another authentication script...
Hi.

#2 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 24 August 2007 - 11:25 PM

Most likely its your coding but i cannot debug it... i will look around for you... i used to have a good one.. but forgot the name.

#3 ksg

ksg

    Newbie

  • Member
  • Pip
  • 3 posts
  • Location:Singapore
  • Wiki ID: sg
  • Main OS: Windows XP

Posted 25 August 2007 - 12:20 AM

Thanks. I had big trouble setting the $_SESSION variable.

Is it possible not to include the header.php file?

Ok. Basically, I want to create a minimalistic PHP and MySQL message board.

Needed information:
login id
password
email

Available functions/preferences:
password change
post message/poll/survey
edit own message/poll/survey
search by date, keywords etc.
board colours (for self)
display names

Targeted use: class noticeboard


Any php+mysql scripts out there so minimalistic?
Hi.

#4 ksg

ksg

    Newbie

  • Member
  • Pip
  • 3 posts
  • Location:Singapore
  • Wiki ID: sg
  • Main OS: Windows XP

Posted 25 August 2007 - 06:59 AM

interesting... the edit button flew away...

I found this posting script, and found it ok. so if possible, just provide an authentication system.
Hi.

#5 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,348 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 26 August 2007 - 02:07 PM

There are tons out there.. just do a search on Google.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users