Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: RFC: Proposed tutorial - simple login script using CGI::Application

by Anonymous Monk
on Jan 21, 2016 at 13:02 UTC ( #1153272=note: print w/replies, xml ) Need Help??


in reply to Re^2: RFC: Proposed tutorial - simple login script using CGI::Application
in thread RFC: Proposed tutorial - simple login script using CGI::Application

Hi, could you please suggest me, how to redirect after successful login however i dont to be change the http://localhost/cgi-bin/WebApp/simple.pl in the browser. Thanks,
  • Comment on Re^3: RFC: Proposed tutorial - simple login script using CGI::Application

Replies are listed 'Best First'.
Re^4: RFC: Proposed tutorial - simple login script using CGI::Application
by scorpio17 (Canon) on Jan 21, 2016 at 15:10 UTC

    The CGI::Application::Plugin::Authentication config method provides the parameters POST_LOGIN_RUNMODE and POST_LOGIN_URL for this purpose (see the documentation). I actually make use of POST_LOGIN_RUNMODE in this demo to route control through my 'okay' runmode, whose main purpose is to transition from https back to http. Feel free to modify that run mode as needed for whatever you need to do.

      Thanks , I have created script with CGI Perl and Iím trying to add login page this tutorial and its working good . However when Iím trying to redirect page (calling my script with POST_LOGIN_URL) its complete change the new URL. im not sure how to add same URL with my script. Couple you please guide some example Thanks in advance!
Re^4: RFC: Proposed tutorial - simple login script using CGI::Application
by Corion (Pope) on Jan 21, 2016 at 13:05 UTC

    You don't need to redirect to a new script. You could redirect to http://localhost/cgi-bin/WebApp/simple.pl?loginSuccess=1 for example.

      Thanks , I have created script with CGI Perl and Iím trying to add login page this tutorial and its working good . However when Iím trying to redirect page (calling my script with POST_LOGIN_URL) its complete change the new URL. im not sure how to add same URL with my script. Couple you please guide some example Thanks in advance!

        Please show the relevant code where you do the redirect, where you expect the redirect to go, and where the browser ends up.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1153272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-04-19 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?