Jump to content
The Uniform Server Community

I cannot start a session or edit headers


ksg
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...