Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Admin login page links redirect back to login page

by ydesai (Initiate)
on Jan 05, 2021 at 03:57 UTC ( [id://11126343]=perlquestion: print w/replies, xml ) Need Help??

ydesai has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am having an issue with the Administrator login for my TetraBBS portal. After successfully logging with Admin privileges at:http://mywebsite.com/cgi-bin/bbs60x/admin_config.pl

I land at http://www.mywebsite.com/cgi-bin/bbs60x/admin_config.pl?md=login

however, the internal links are redirecting back to the login page. For example, there is a link to messages posted, and if I hover on it, it points to:
http://www.mywebsite.com/cgi-bin/bbs60x/admin_config.pl?page=1;md=parklist;src=moderate

but when I click it is redirecting back to the login page. http://mywebsite.com/cgi-bin/bbs60x/admin_config.pl
Appreciate any help or suggestions on what’s causing it and how to resolve it.
  • Comment on Admin login page links redirect back to login page

Replies are listed 'Best First'.
Re: Admin login page links redirect back to login page
by Corion (Patriarch) on Jan 05, 2021 at 09:05 UTC

    If you consistently get redirected back to the login page, my first guess would be that your browser is not accepting/storing the cookies sent after login (assuming the user and password are correct). Have you looked at what cookies a successful login sends in the response, and whether your browser stores these cookies?

    This has very little to do with Perl and without you posting the relevant code and finding out what in the environment has changed, we likely can't help you further.

Re: Admin login page links redirect back to login page
by GrandFather (Saint) on Jan 05, 2021 at 04:35 UTC

    Can you show us the Perl code that is failing?

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
Re: Admin login page links redirect back to login page
by marto (Cardinal) on Jan 05, 2021 at 08:57 UTC

    If this worked fine up till now then there could be some underlying issue to do with resources on your system. You don't say if the app or server logs provide any details, and you don't provide the code which you have (that we don't). The last release of this software is from 2013, the archive.org link provided doesn't have an archive of the software. How do I post a question effectively?, tutorials->Debugging and Optimization.

Re: Admin login page links redirect back to login page
by Don Coyote (Hermit) on Jan 05, 2021 at 13:26 UTC

    Hello yedsai.

    Can't say I have ever seen a landing page with a .pl file extension before, so that is a little ominous from the getgo. Not to say it is wrong, just unusual. I would expect either a .cgi or .*ml extension at that path.

    I am currently attempting to determine whether any user should be landing at any path involving cgi-bin, as opposed to a .index extension at the Public_Html directory. Though I don't seem to be able to set permissions such that any user should not be allowed access the cgi-bin path whilst also allowing the website to work as normal.

    I am definetly interested in the outcome of this one.

      .pl isn’t completely unusual. Extensions for web apps are just a matter of configuration—telling the webserver which extensions to execute—or application routing—setting your app to do something based on any valid URI path. They are convenient in the FS but should never be trusted–

      mv pwnMachine.exe kitten.jpg

        Your Mother, of course, in the last few days I have been doing some admin at my webhost and up popped some .pl extensions, followed by key=value params. Thereby instantly contradicting myself. Not meaning to go OT from the main question, as I have similar niggles with understanding how to approach my $worktime interfaces.

        Most likely it is a configuration issue, but then we like to look at where is the line between what is the issue in terms of being perl related. Server configuration is not necessarily a perl issue in of itself, but at least in regards to transcribing web documents, being part of a community that can share the info is almost, if not as, important.

        Regarding the code snippet you provide here. I think this is one of the things that might help progression with learning the language, just saw Coding in Perl? What support do you need? as I logged. That is, miniature examples of the kind of security issues that we would rather not unintentionally reproduce. But now I am going ot.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found