Google bot and SESSIONS

Discussion in 'Google' started by redhits, Mar 3, 2010.

  1. #1
    Does anybody knows, does google accept SESSIONS?

    I am asking myself if this:

    
    <?php
    $_SESSION['nobots']='tralalala';
    
    if(isset($_SESSION['nobots'])){
    echo "Welcome real user :)";
    
    }
    
    ?>
    
    Code (markup):
    will also work for google, not just for real guys :)
     
    redhits, Mar 3, 2010 IP
  2. WishBone

    WishBone Peon

    Messages:
    2,566
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't get it. Do you want to block google bots? If so, look for robot.txt tutorials on how to do that.
     
    WishBone, Mar 4, 2010 IP
  3. Sphinks

    Sphinks Active Member

    Messages:
    1,102
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #3
    of course this code will work.
     
    Sphinks, Mar 4, 2010 IP
  4. greenoro0

    greenoro0 Active Member

    Messages:
    435
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    70
    #4
    is this code work for Asp.Net pages?
     
    greenoro0, Mar 4, 2010 IP
  5. unknownpray

    unknownpray Active Member

    Messages:
    3,831
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Unable to understand your question.. please ask in detail
     
    unknownpray, Mar 6, 2010 IP
  6. mike30

    mike30 Well-Known Member

    Messages:
    887
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #6
    lol...

    to my understanding. the session variables are set by your server, not google. ( you have to identify the bot first, then apply that variable to it to work.

    lol...
     
    mike30, Mar 6, 2010 IP
  7. Mehungwaylo

    Mehungwaylo Peon

    Messages:
    54
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    No it doesn't: Google will usually not index anything with a "&" in the URL. The "&" is a huge indicator of a session id.
     
    Mehungwaylo, Mar 6, 2010 IP
  8. mike30

    mike30 Well-Known Member

    Messages:
    887
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #8
    "&" is used on url parameters as a parameter separator.
     
    mike30, Mar 6, 2010 IP
  9. unknownpray

    unknownpray Active Member

    Messages:
    3,831
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    70
    #9
    Unable to understand your question.. please ask in detail
     
    unknownpray, Mar 24, 2010 IP
  10. Sxperm

    Sxperm Notable Member

    Messages:
    4,386
    Likes Received:
    142
    Best Answers:
    0
    Trophy Points:
    225
    #10
    Google can define website session and good handling with it. However, they do not like session since it could make their search results filled with duplicated content. If your web use session then one webpage content can be indexed multiple times because of different session id. That's why Google is likely to avoid index page with session id included, sometime it does index but only one version. If those session disappeared later then that page could be 404 for Googlebots.
     
    Sxperm, Mar 24, 2010 IP
  11. mike30

    mike30 Well-Known Member

    Messages:
    887
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    140
    #11
    hummm. Good point. I haven't realized that before.
    Thanks... Good share ;)

    ~Mike
     
    mike30, Mar 24, 2010 IP