Results 1 to 17 of 17

Thread: cookie problem on new server

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337

    cookie problem on new server

    ok this is really strange for me. everything worked great before we moved servers and now cookies don't get set in IE or NS7. I didn't make any changes to the code prior to the move or after it. the really weird part is that it works if I do not use a time, but it nevers gets saved to my hard drive like all the other sites do and like it did before.

    setcookie ("userid", $cookie_id, 0);

    but if I use time it fails

    setcookie("userid", $cookie_id, time());


    it doesn't even matter if I took add /folder or just make it "/". it will not save a cookie for IE, firefox works great but not IE.

    we are on php4.3.4 and mysql 4.XX

    as far as know it is the same version we just came off of. DNS has resolved and working just fine, as far as I know.

    could it be a server setting or something?

    the server is about 10 minutes fast compared to teh browser (as far as I can tell) so even doing this doesn't work

    setcookie("userid", $cookie_id, time()+3600 );

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Is it a company hosting the site or are you the owner of the server? If its a company I'd create a trouble ticket and tell them your scripts worked fine till the change and they might tell you if they have certain settings that are causing the problem.
    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    no, it is in a datacenter. but they said it is nothing on the server that is stopping it so I have to prove it to them. it has something to do with time but not sure. the time on the server is correct so that wasn't it.

  4. #4
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Does it work if you have a blank page that places a cookie? If not them so them a simple php file that would create a cookie that lasts a day then get them to admit it should work and show them?
    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.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    well I didn't change anythign and now it works, so it must have beeneither a sever setting.

    but anytime I gave it a time it would not set. the admin have seen it and they say it is a php problem so you know how far that went.

    thanks for input

  6. #6
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    BTW I noticed your link in your signiture doesn't work
    And then I navigated the site to find the item and then it wouldn't download either that way, gave a 403 error even though the message above the link warned of it if you didn't use that page .
    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.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    thanks, I forgot to update that link after the site was upgraded. it is fixed now.

    but you say you can't downlaod it? I didn't have any problems. what OS and browser are you using?

  8. #8
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I'm using XP Pro SP1 & IE 6.

    The Image on the error page doesn't load either:
    http://www.snippetlibrary.com/down_z...s/snippet5.gif
    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.

  9. #9
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629
    That page's table alignment sucks.

    Also, I'm using Win2000 and can download it fine.
    Like Archer? Check out some Sterling Archer quotes.

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    thanks again. url was wrong in the error file.

    I use IE6 and didn't have any problems. how did you try to download it? the only way is to click on the zip image on that page.

  11. #11
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Originally posted by phpman
    The only way is to click on the zip image on that page.
    Thats the one, that what I was doing . I'm trying to find another item that has a zip attached so i can see if the same happens but can't seem to find any others (Yet).
    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.

  12. #12
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Yeah, same just happened for the Movie_db.zip .
    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.

  13. #13
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I don't have to register do I?
    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.

  14. #14

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    no, it is a free download.

    do you have "Privacy Control Software" loaded? if so disable it. also it might be your firewall.

    what happens when you click on it? can you load a screen shot?

  15. #15
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Here you go. No "Privacy Control Software" software loaded but I'll try disabling my software firewall (Hardware one shouldn't have any effect, just stops Incomming Connections).
    Attached Images Attached Images  
    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.

  16. #16
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Cool, seems I did have "Privacy Control Software", didn't notice it was on by default in my firewall. Just reinstalled it so that'll be why its on now . Got the file once I turned it off. Thanx.
    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.

  17. #17

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    cool, glad you found it

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