CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Cookies

Threaded View

  1. #1
    Join Date
    Mar 2000
    Posts
    196

    Cookies

    I want to write the cookie-status of a browser into the variable $cookies using PHP and Javascript.

    My solution is the following command, but it doesn't work :-((

    echo "Cookie status:<script type='text/javascript'>if(navigator.cookieEnabled == 'true') {$cookies='allowed';}</script>".$cookies;

    Does someone have an idea how to solve that problem? (the status must be in $cookies because I want to use it somewhere else in the code!)


    [Goodz13:Moved from Java Fourm]
    Last edited by Goodz13; January 3rd, 2003 at 01:58 PM.

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

Featured