Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Corion (Patriarch)
on Jan 21, 2016 at 13:05 UTC ( [id://1153273]=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re^4: RFC: Proposed tutorial - simple login script using CGI::Application
  • Download Code

Replies are listed 'Best First'.
Re^5: RFC: Proposed tutorial - simple login script using CGI::Application
by Anonymous Monk on Jan 21, 2016 at 15:42 UTC
    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.

        Hi,
        STORE => 'Session', #LOGOUT_RUNMODE => 'logout', #LOGIN_RUNMODE => 'login', POST_LOGIN_RUNMODE => 'okay', POST_LOGIN_URL =>'http://localhost/cgi-bin/WebApp/vpage.cgi', RENDER_LOGIN => \&my_login_form,
        In the browser trying login page URL "http://localhost/cgi-bin/WebApp/simple.pl" after successful login the page getting redirect to new URL http://localhost/cgi-bin/WebApp/vpage.cgi, the problem is anyone can try directly access to "http://localhost/cgi-bin/WebApp/vpage.cgi" it will show the page without login.

        Trying to hide the page http://localhost/cgi-bin/WebApp/vpage.cgi, users

        Many Thanks...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found