![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2004
Location: South Florida
Posts: 4,134
|
shouldnt you be closing the connection after each query?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jun 2001
Posts: 853
|
well
as long you request it in php jsp or pure java i can do it no prob ![]() icq 20196017 msn [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: May 2004
Location: South Florida
Posts: 4,134
|
Quote:
yeah exactly |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jan 2003
Location: 2006
Posts: 8,584
|
hmm, you should have a custom solution built. irater was made for a few hundred connections at a time max..
|
![]() |
![]() ![]() ![]() ![]() ![]() |