in reply to Re: Sessions, Perl and MySQL
in thread Sessions, Perl and MySQL
Yes, CWT::Site_DB is a module that I created.$sth1 = $dbh->prepare (qq{ SELECT * FROM `sessions` }); $sth1->execute(); while($row1 = $sth1->fetchrow_hashref()) { next if !$row1->{id}; $sess_ref1 = CWT::Site_DB->open_with_expiration(undef, $ro +w1->{id}); if($sess_ref1->attr("username") eq "$cust_username") { if ($sess_ref1->attr("logged_in") == 1) { $sess_ref1->attr("is_admin",1); } else { next; } } else { next; } } $sth1->finish();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Sessions, Perl and MySQL
by tachyon (Chancellor) on Mar 31, 2003 at 00:38 UTC |