Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Sessão


MTavares
 Share

Question

Sei não... mas está virando pessoal esse problema entre o PHP e eu.... :blink: ... agora tá dando problema de sessão... e olha que não tem nenhum HTML antes, espaço, essas coisas... está dando aquele famoso erro:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/site/public_html/site/inc/common_functions.php:138) in /home/site/public_html/site/index.php on line 24

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/site/public_html/site/inc/common_functions.php:138) in/home/site/public_html/site/index.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at/home/site/public_html/site/inc/common_functions.php:138) in/home/site/public_html/site/index.php on line 28

O código que estou usando é:

<?php

// Validação

}else{

session_start();

$_SESSION["login"] = $login;

$_SESSION["id"] = $id;

$_SESSION["setor"] = $setor;

header("location:entra.php");

}

?>

estou pensando seriamente que, mais um erro, vou virar ermitão!!!! <_<

abs

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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.

 Share



  • Forum Statistics

    • Total Topics
      150.1k
    • Total Posts
      647.1k
×
×
  • Create New...