[ bigguy @ 17.11.2006. 07:30 ] @
| uradio sam login sa coockiesima u kojima se prosledjuje user id i nasumicno generisan broj koji se unosi u bazu i proverava svaki put prilikom pristupa nekoj novoj strani i dao odredjeno vreme trajanja coockiea... e sad sve to lepo funkcionise ali me interesuje kako i da li je moguce obrisati coockie nakon sto korisnik zatvori IE ili FF a da se pre toga ne odloguje? |
[ shketuljko @ 17.11.2006. 10:23 ] @
Nemeres

[ bigguy @ 17.11.2006. 13:15 ] @
kako onda doskociti tome, ima li ko ideju?
[ Davor Grubelić @ 17.11.2006. 13:45 ] @
pa radi preko sessiona. sessioni ti se traju dok god je browser otvoren ili dok ih ne uništiš.
to je ono što ti treba.
[ bigguy @ 17.11.2006. 13:59 ] @
takav sam odgovor i pretpostavljao
[ japan @ 18.11.2006. 03:26 ] @
http://www.php.net/setcookie
Citat:
expire
----------
The time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. In other words, you'll most likely set this with the time() function plus the number of seconds before you want it to expire. Or you might use mktime().
----------
time()+60*60*24*30 will set the cookie to expire in 30 days. If not set, the cookie will expire at the end of the session (when the browser closes).
Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.