warning:session_destroy() Trying to destroy uninitialized session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bikashliju
    New Member
    • Sep 2010
    • 9

    warning:session_destroy() Trying to destroy uninitialized session

    1.session_destr oy() Trying to destroy uninitialized session
    2.Cannot modify header information - headers already sent by (output started at C:\xampp\xamppl ite\htdocs\back up\logout.php:3 )
    Code:
    <?php
    session_destroy();
    header( 'Location: http://localhost/backup/login.php');
    ?>
    exicuting the code i got this type of warning
    can someone explain what is unitialized session
    Last edited by Dormilich; Oct 12 '10, 08:40 AM. Reason: please use [code] [/code] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    can someone explain what is unitialized session
    using session functions without calling session_start() beforehand

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      And for the second error, which is created by the first error, read this.

      Comment

      • bikashliju
        New Member
        • Sep 2010
        • 9

        #4
        thanx a lot sir

        Comment

        Working...