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

Re: [cgiapp] Re: CGI Error handling


Quoting Mark Fuller <suppressed>:

> I use "cgiapp_init" to retrieve session tracking from a MySQL table, and
> determine if the visitor needs to sign in (either because no
> session-tracking row was found or the information expired due to
> inactivity). I know how to redirect to the "login" application. But, I don't
> know how to do this inside "cgiapp_init". (It's not a method that emits
> output?)

Have a look in the docs for the 'cgiapp_prerun' method and the 'prerun_mode'
method.  You can move your session checks from cgiapp_init to cgiapp_prerun,
which will then allow you to use the prerun_mode method to change the current
runmode to your login runmode.

Cheers,

Cees

---------------------------------------------------------------------
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.