Cookie coders...?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acctman
    Confirmed User
    • Oct 2003
    • 2840

    #1

    Cookie coders...?

    anyone good with cookies? i need a cookie made that will close a database connection once a user leaves the site and closes his/her browser window.

    please leave contact info or your website thanks.
  • mortenb
    Confirmed User
    • Jul 2004
    • 2203

    #2
    A cookie in itself does not in any way have access to the database. A cookie can only contain whatever data you choose to store in it, and that is all it can do.

    What you are trying to do would need a server side programming or scripting language like PHP or ASP or C or something similar.

    Comment

    • MickeyG
      Confirmed User
      • May 2004
      • 4134

      #3
      shouldnt you be closing the connection after each query?

      Comment

      • mortenb
        Confirmed User
        • Jul 2004
        • 2203

        #4
        Originally posted by MickeyG
        shouldnt you be closing the connection after each query?
        You have won. Well, not after each query, but after each opened connection isn't needed anymore. No reason to make a new connection for every query..

        Comment

        • onlyreal
          Confirmed User
          • Jun 2001
          • 853

          #5
          well

          as long you request it in php jsp or pure java
          i can do it no prob

          icq 20196017
          msn [email protected]

          Comment

          • MickeyG
            Confirmed User
            • May 2004
            • 4134

            #6
            Originally posted by mortenb
            You have won. Well, not after each query, but after each opened connection isn't needed anymore. No reason to make a new connection for every query..

            yeah exactly

            Comment

            • acctman
              Confirmed User
              • Oct 2003
              • 2840

              #7
              thanks for the info. I have the i-rater script, its pretty much a nice script but the database connection is crappy. it remains open and doesn't close properly thus resulting in mysql crashing when too many people visit the site.

              yes is should close after every query, but i guess the people at i-rater.com didn't think of that resulting in this problem. that setup up a timer to close database connections stupid if you ask me. i spoke to them about this but they just keep blowing me off.

              Comment

              • TheMob
                Confirmed User
                • Jan 2003
                • 8584

                #8
                hmm, you should have a custom solution built. irater was made for a few hundred connections at a time max..

                Comment

                Working...