Closed Thread
Results 1 to 3 of 3

Thread: Cookies problemo

  1. #1
    Jaan Guest

    Cookies problemo

    Anyway i got this problemo.. i got this 2 things:

    Code:
    setcookie("username"$usertime()+18000);
    setcookie("password"$passwordtime()+18000); 
    and they are in the middle of my script.. and i get this facking error..


    Warning: Cannot modify header information - headers already sent by (output started at /home/j*/public_html/*/index.php:32) in /home/*/public_html/*/index.php on line 171

    Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/*/index.php:32) in /home*/public_html/*/index.php on line 172
    So where's the problem hmm.. :S

  2. CODECALL Circuit advertisement

     
  3. #2
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31
    er....if you've tried to do any output at all, you send the default headers and anything you've cached by calling setcookies or header(). If you try to use any of those functions after output, your out of luck.

  4. #3
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Also white spaces before and after your php tags at the head and bottom of your page has also caused this error.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problemo
    By TheCEOandPresident in forum General Programming
    Replies: 3
    Last Post: 07-31-2010, 01:25 AM
  2. CSS problemo
    By Jaan in forum JavaScript and CSS
    Replies: 6
    Last Post: 03-24-2009, 05:50 AM
  3. unlink problemo
    By Jaan in forum PHP Development
    Replies: 1
    Last Post: 08-13-2008, 08:32 AM
  4. readyState problemo
    By Jaan in forum AJAX
    Replies: 1
    Last Post: 05-14-2008, 09:18 AM
  5. Session problemo
    By Jaan in forum PHP Development
    Replies: 1
    Last Post: 03-05-2008, 02:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts