Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts

    COOKIE-SESSION-GET all exist , what get ?

    $a1=$_COOKIE['a1'];
    $a1=$_SESSION['a1'];
    $a1=$_GET['a1'];
    If we have all the above in a webpage what value of $a1 will be ?

  • #2
    New Coder
    Join Date
    Dec 2005
    Posts
    35
    Thanks
    1
    Thanked 1 Time in 1 Post
    it will be the last defined variable, therefore

    $a1 == $_GET['a1'];


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •