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

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.   Restore formatting

  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.

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.