[thelist] PHP Login from Evolt site.
Mark Groen
evolt at markgroen.com
Tue Apr 10 15:16:39 CDT 2007
On Tuesday 10 April 2007 12:52, Paul Bennett wrote:
> > Haven't done that myself, but if no one else replies... looks like it
> > should be something like:
> >
> > if($session->logged_in){
> > if(isset($_GET['userlevel'])) { $session->userlevel = $_GET['userlevel'];
> > }
> >
> > // do their thing here
> >
> > } else {
> > // send them somewhere else or do another thing
> > }
>
> Am I mistaken or are you suggesting you let users set their security
> clearance based on a $_GET variable? Please tell me I'm mistaken....
The actual log in function in the script is from a post, forget about the gets, sorry:
$retval = $session->login($_POST['user'], $_POST['pass'], isset($_POST['remember']));
--
cheers,
mark
More information about the thelist
mailing list