Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Displaying another web page

by leira (Monk)
on Apr 20, 2004 at 16:13 UTC ( [id://346693]=note: print w/replies, xml ) Need Help??


in reply to Displaying another web page

This is a little difficult to answer without knowing what sort of authentication system you're using, and without seeing code that shows what you've tried so far. Can you give us some more information, and show us what you've done so far?

Have you already read the documentation for CGI.pm? What are you having trouble with, exactly?

Linda

Replies are listed 'Best First'.
Re: Displaying another web page
by Anonymous Monk on Apr 20, 2004 at 16:42 UTC
    Linda,
    It is staying in the same page and displaying the message as
    Status: 302 Moved Set-Cookie: CGISESSID=09db3b13daece8f8b6721668a03707 +02; path=/ Date: Tue, 20 Apr 2004 16:40:48 GMT location: http://local +host/reports.pl
Re: Displaying another web page
by Anonymous Monk on Apr 20, 2004 at 16:34 UTC
    Hi Linda,
    Thnk you for fast response.
    Im using CGI::Session module.
    I have written print $cgi->redirect(-uri=>"http://localhost/reports.pl",-cookie=>$cookie)
    $cookie points to teh session variable which im initializing in the beginning of the program.
    now, as soon as user presses "login" button, my perl script has to show "reports.pl" page and should display the values stored in session variable.
    this is what i need actually.
    But, it is not going to reports.pl page.It remains in the same page.
    Pls help me Linda.
      When printing a redirect you need to make sure that is the only thing you are printing. Don't print a header before that.

      ___________
      Eric Hodges
        hi Eric,
        I removed the header which im printing before $cgi->redirect.<br? eventhough it is not going to the specified URL.
        Instead printing a message like
        Status: 301 Set-Cookie: CGISESSID=5ad97ae74acf2fd202ce63a7021cd576; path=/ Date: Wed, 21 Apr 2004 04:38:51 GMT location: http://localhost/reports.pl
        pls help me Eric.
        Thankx in advance.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found