Results 1 to 5 of 5

Thread: setcookie function problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    16

    setcookie function problem

    i have a question,

    when i am going to multiply with 26 to 31 it makes cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile

    thiws code works properly
    <?php
    setcookie("user", "hello", time() + (86400 * 26), "/" );
    ?>

    but when i am going to multiply with less than 26 it does not make any cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile

    this code shows Problem
    <?php
    setcookie("user", "hello", time() + (86400 * 24), "/" );
    ?>
    can any one help my or tell me why this happening?

    Thanks In advance

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: setcookie function problem

    What is the problem? Is there an error message? If so, what is it?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    16

    Re: setcookie function problem

    Hello PenagateNo,It does not show any error message>the problem is that,it does not Create or make any cookie file in the following path.like example, when we visit Yahoo.com.it shows or create cookie:[email protected]/ in the following path in browser's(IE) menu tools->internetoption->settings->viewfile


    please help me to overcome from this problem and thanks for Showin me your interest in my problem.Thanks In advance,

  4. #4
    Addicted Member
    Join Date
    Feb 2006
    Location
    Hyderabad, India
    Posts
    233

    Re: setcookie function problem

    May be you have already done it, but did you try to check through php if the cookie is actually being set, rather than look at the IE files?

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

    Re: setcookie function problem

    Quote Originally Posted by somdeep_123
    i have a question,

    when i am going to multiply with 26 to 31 it makes cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile

    thiws code works properly
    <?php
    setcookie("user", "hello", time() + (86400 * 26), "/" );
    ?>

    but when i am going to multiply with less than 26 it does not make any cookie file. in browser's(IE) menu tools->internetoption->settings->viewfile

    this code shows Problem
    <?php
    setcookie("user", "hello", time() + (86400 * 24), "/" );
    ?>
    can any one help my or tell me why this happening?

    Thanks In advance
    Remove the original cookie first.
    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.

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