Mon, 25 Nov 2024
Total Visits
35387773
Visitors today:
1120
Main Menu
Home
Free Scripts
Forum
Guestbook
Repository
Contact
Our Sponsors
Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
Search
Hottest Topics
Member Listing
FAQ
Register
/
Login
Cookie Laufzeit - Adv.Poll
Forum Index
»
German Forum
Author
Message
10/07/2002 23:40:06
Subject:
Cookie Laufzeit - Adv.Poll
Helge Forstner
Beginner
Joined: 04/05/2002 21:50:12
Messages: 12
Location: Celle, Germany
Offline
Hallo, wie stelle ich die Laufzeit der Abstimmungscookies ein?
> $cookie_expire = 168; // hours
in poll_cookie.php habe ich obige Zeile auf 168 hours eingestellt = 1 Woche.
> if ($action=="vote" && (isset($HTTP_POST_VARS['option_id']) || isset
> ($HTTP_GET_VARS['option_id']))) {
> $cookie_name = "AdvancedPoll".$poll_ident;
> if (!isset($HTTP_COOKIE_VARS[$cookie_name])) {
> $endtime = time()+3600*$cookie_expire;
weiter unten habe ich obige Zeile gefunden. Wofür steht die 3600?
Stunden? Muss ich hier etwas verändern um 1 Woche Laufzeit zu bekommen?
> setcookie($cookie_name, "1", $endtime);
}
}
?>
Harry H. Forstner
Celle, Germany
11/07/2002 14:58:34
Subject:
Anonymous
3600 sind Sekunden also 1 Stunde
11/07/2002 18:42:24
Subject:
Cookie Laufzeit - Adv.Poll
Helge Forstner
Beginner
Joined: 04/05/2002 21:50:12
Messages: 12
Location: Celle, Germany
Offline
Anonymous wrote:
3600 sind Sekunden also 1 Stunde
Aha, er zählt die Sekunden.
3600 * 168 = 1 Woche
Richtig?
Vielen Dank auch.
Harry H. Forstner
Celle, Germany
Forum Index
»
German Forum
Go to:
Select a forum
General Discussion
Support Forum
German Forum
Advanced Guestbook Forum
Advanced Guestbook Modifications
Based on the open source
JForum