Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session_start(); Cannot send session cookie #188

Open
gobboo opened this issue Oct 15, 2017 · 7 comments
Open

session_start(); Cannot send session cookie #188

gobboo opened this issue Oct 15, 2017 · 7 comments

Comments

@gobboo
Copy link

gobboo commented Oct 15, 2017

Got these two errors, but I don't know if it's caused by SteamAuthentication Itself:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/corrupts/public_html/index.php:35) in /home/corrupts/public_html/steamauth/steamauth.php on line 3

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/corrupts/public_html/index.php:35) in /home/corrupts/public_html/steamauth/steamauth.php on line 3

When I try to click login.

Warning: Cannot modify header information - headers already sent by (output started at /home/corrupts/public_html/index.php:35) in /home/corrupts/public_html/steamauth/steamauth.php on line 25

@bnicot
Copy link

bnicot commented Nov 5, 2017

could you provide some information about your setup ?

  • self managed server or web hosting ?
  • apache / php version (32/64 bits ?)

got the same error and I think it might comes from the hoster because with the same files I've got no any problems on my personal server.

@BlackCetha
Copy link
Contributor

The error messages are quite clear about what's going wrong: You're already outputting text before the library is included. This happens in your personal index.php that has nothing to do with this library.

You can probably fix that by moving the library import to the top of the file.

@bnicot
Copy link

bnicot commented Nov 5, 2017

so why is it working with the sames files on my personal host ?
and the require is already at the top of the file :/

edit : said shit, i'll test with the require at the top

@BlackCetha
Copy link
Contributor

BlackCetha commented Nov 5, 2017

There are different reporting levels in PHP. You can set them using error_reporting() (http://php.net/manual/en/function.error-reporting.php).

Your local development server might have warnings disabled while your host hopefully has them enabled.

@bnicot
Copy link

bnicot commented Nov 5, 2017

yup, my bad, I modified some code while viewing it...
it was that 👍

since it should be the same thing for @Mobles i think u can mark this as solved

@gobboo
Copy link
Author

gobboo commented Nov 5, 2017

I solved it ages ago :)
Using it for this: corruptservers.co.uk

@BlackCetha
Copy link
Contributor

BlackCetha commented Nov 5, 2017

Please close this issue report then. @Mobles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants