Announcement

Collapse
No announcement yet.

[SOLVED] Cookie Help Required! Cookies set but not showing in other applications?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] Cookie Help Required! Cookies set but not showing in other applications?

    I have a login form with a "remember me" option which sets a couple of cookies
    This seems to work fine and I can see the cookies in firebug with the correct values.
    However when I go to another application you cannot see the cookies?? i.e I wanted a control that KILLS the cookies, but fails because there are no cookies to kill, and I cant see them in fire bug?

    Are the cookies not stored on the computer rather than an application are am I getting something wrong here?

    FYI - This is the code I use to set the cookies
    Code:
    setcookie('rep_groupUser', [groupUser], time() + 5184000);
    setcookie('rep_password', {password}, time() + 5184000);
    Any help would be appreciated

  • #2
    Hi,

    use setcookie() in this way:

    setcookie('rep_groupUser', [groupUser], time() + 5184000, '/');

    See the parameter "path" on the php doumentation: http://www.php.net/manual/en/function.setcookie.php
    Best regards: - Reinhard -

    I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

    Comment


    • #3
      Thanks for taking the time to help. Sorted!

      Hi and thanks for taking the time to help.
      Sometime you just need pointing in right direction

      Regards

      Andy


      Originally posted by RHS View Post
      Hi,

      use setcookie() in this way:

      setcookie('rep_groupUser', [groupUser], time() + 5184000, '/');

      See the parameter "path" on the php doumentation: http://www.php.net/manual/en/function.setcookie.php

      Comment

      Working...
      X