I'm using CGI::Application::Plugin::Authentication and I'd like to
have the application remember what runmode a user was trying to access
if authentication is needed.

For example, a user clicks on a link to 'page7' (or page6), but
page7/page6 requires authentication, so the login page displays, but
after the user logs in, I want page7/page6 to display.

I don't see any way to do this with the Authentication module...
POST_LOGIN_RUNMODE won't work, because I can only specify a single
runmode/page: e.g., page7 or page6.

Since I'm using Plugin::Session, I'm thinking about
- storing the original runmode into the session from inside cgiapp_prerun()
- setting POST_LOGIN_RUNMODE to post_login
- in post_login() check the session for the "old/cached" runmode -- if
one is defined, call that runmode

Is there another/existing/better way?
-- Mark

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

Reply via email to