function vud_init in Vote Up/Down 6.2
Same name and namespace in other branches
- 6.3 vud.module \vud_init()
Implementation of hook_init().
File
- ./
vud.module, line 13
Code
function vud_init() {
// Remove anonymous sessions which were previously set to prevent pressflow
// page caching. This will eventually clean up those sessions over time.
// @todo: remove in a future release when it can be reasonably expected that
// no more sessions with this variable exist in the wild.
$now = time();
if (!empty($_SESSION['vud_timestamp'])) {
unset($_SESSION['vud_timestamp']);
}
}