in reply to Loging a user out with CGI and Cookies?
He re is part of my program:
use CGI; $query = new CGI; sub logout { $cookie_expires = "-1s"; &cookie_create; print $query->redirect( -uri => $redirect_to, -cookie => $cookie ) +; } sub cookie_create { $cookie = $query->cookie(-name => $cookie_name, -expires => $cookie_expires, -domain => $cookie_domain, -path => $cookie_path, -value=>{ username => $username, password => crypt($password, $us +ername) } ); }
As you can see cookie_create sub can be also used to create cookie not only to erase it. This worked well, if you want all script which verify login again csv flat file user database I can send it to you.
Good luck
Li Tin O've Weedle
mad Tsort's philosopher
|
|---|