[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] cgi app prerun


Hi

In my cgiapp_prerun i have a chunk of code that does this

if (runmode starts with a_) {
  try to authenticate the user if that fails
      { kick them out of the system}
  } 
}

nice pseudo code eh ? anyways my current method to kick them out
changes the header to the logi page, and returns 1. this works
however the runmode that was going to run, still runs.

Meaning that if i kick them out from the backend, they can still
execute one more action.  What is a better way to do this ?

I was thinking 

if ( they didn't authenticate ) {
  change the run mode.
} 

i guess that would work. now my question is , how to change the runmode
in cgiapp_prerun ? thanks.

Jeff.


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.