Results 1 to 3 of 3

Thread: Cookies not being Sent

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Angry Cookies not being Sent

    I can't understand why my cookie isn't being sent, I use the following code:
    PHP Code:
    setcookie("logincode"$UserGUIDtime()+60*60*24*7"/""foxhunters.ElectromanUK.com"0); 
    and on my PC it works for both FF & IE. However I tried it on my bosses PC and it acted as if the cookie didn't even get sent. I tried changing IEs setting to prompt for when cookies are sent but it never poped up.
    The line of code definitly got ran aswell.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Cookies not being Sent

    I would check the time settings on your bosses PC. What OS and version of IE does he run? Does he also have any software like a personal firewall which could be intercepting them?

    It may also be worth passing the host name in lower case. Internet Explorer may be fussy about that.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: Cookies not being Sent

    Thanx, I'll see if I can find out, I did check the time on the computer and it was right, dunno if the date was right though.

    I also checked the time on the server and that was ok too, as it was fixed last time when i notified my host.

    BTW if I set the time part to zero it will become a session cookie right? I think i'll be better off doing that from now on ......Will see if that helps, first of all i'm gonna test the domain as lower case .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

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



Click Here to Expand Forum to Full Width