does refresh resend cookies?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence

    does refresh resend cookies?

    Can't seem to get the cookies I want sent. Refreshing a page resends
    all the cookies, yes? The HTML in this function should be sufficient,
    yes?



    function userCounterPage () {
    global $cookies;
    extract($config =getConfig());
    $self = $self."?pageEve ntMiddle[]=userCounterPag e&renderPageCan cel=true";
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
    Transitional//EN\">
    <html>
    <head>
    <title></title>
    <meta http-equiv=\"REFRESH \" content=\"9; url=$self\">
    </head>
    <body>";

    $cookies->printAllCookie s();

    echo "</body></html>";
    }
  • RG

    #2
    Re: does refresh resend cookies?


    "lawrence" <lkrubner@geoci ties.com> wrote in message
    news:da7e68e8.0 307142224.38513 0f3@posting.goo gle.com...[color=blue]
    > Can't seem to get the cookies I want sent. Refreshing a page resends
    > all the cookies, yes? The HTML in this function should be sufficient,
    > yes?
    >
    >
    >
    > function userCounterPage () {
    > global $cookies;
    > extract($config =getConfig());
    > $self = $self."?pageEve ntMiddle[]=userCounterPag e&renderPageCan cel=true";
    > echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0
    > Transitional//EN\">
    > <html>
    > <head>
    > <title></title>
    > <meta http-equiv=\"REFRESH \" content=\"9; url=$self\">
    > </head>
    > <body>";
    >
    > $cookies->printAllCookie s();
    >
    > echo "</body></html>";
    > }[/color]


    Scrap the cookies idea, not everyone has them on.
    Write the info to a databse and send a session with every request

    Hope this helps
    RG



    Comment

    • Phil Roberts

      #3
      Re: does refresh resend cookies?

      With total disregard for any kind of safety measures
      lkrubner@geocit ies.com (lawrence) leapt forth and uttered:
      [color=blue]
      > I can't make sense of your idea. PHP session's simply use
      > cookies. If someone doesn't allow cookies then PHP's sesssions
      > don't work either.[/color]

      Incorrect. If the user deativates cookies then PHP will pass the
      session ID via the URL (in most cases, the URL re-writing seems to
      break under certain circumstances)

      --
      There is no signature.....

      Comment

      Working...