Jump to content
Sign in to follow this  
JPedro.CdT

Sistema de Login

Recommended Posts

JPedro.CdT

Boas eu tenho um site com login e logo no inicio do index.php do site tenho o seguinte codigo:

<?php session_start(); ?>

No servidor local que eu tinha (wamp) não dava qualquer erro, mas agora no alojamento está-me a dar os seguintes erros. Alguem tem solução

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/jpdesign/public_html/WorldMusic/index.php:1) in /home/jpdesign/public_html/WorldMusic/index.php on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jpdesign/public_html/WorldMusic/index.php:1) in /home/jpdesign/public_html/WorldMusic/index.php on line 1

Share this post


Link to post
Share on other sites
bpinto

Aqui vai um pequeno exemplo do que pode ser...

Nao sei se será a solução.

Encontrei no Google.

Warning: session_start(): Cannot send session cookie - headers already sent

100% working solution

Step one :- Search & Open PHI.INI

Step Two:- Search session.cache_limiter

Step three:- put " public " in front of session.cache_limiter

Like

session.cache_limiter =public

Thats it .

Share this post


Link to post
Share on other sites
JPedro.CdT

UTF-8 com BOM ou sem BOM? eu tenho UFT8 apenas!

Ja vi, tou so a instalar o notepad++ tava a usar o dream

OBRIGADO! RESILVIDO

Edited by JPedro.CdT

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.