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

cached problems

by slurch901 (Initiate)
on Dec 10, 2012 at 23:03 UTC ( #1008181=perlquestion: print w/ replies, xml ) Need Help??
slurch901 has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I have a problem displaying my cgi site correctly. Basically first time round it checks if the user has an active session and if not it prints the login boxes else it just loads the content. If the user logs in it creates the session and cookie ok, but he has to hit submit twice for it remove the login boxes and display the correct content, although if you only press submit once and refresh the page it displays the content correctly. I was wondering if there is a way to fix this? Cheers

Comment on cached problems
Re: cached problems
by Anonymous Monk on Dec 10, 2012 at 23:53 UTC
Re: cached problems
by GrandFather (Cardinal) on Dec 11, 2012 at 01:21 UTC

    You have the sense of the test in the if statement on line 42 backwards.

    True laziness is hard work
Re: cached problems
by davido (Archbishop) on Dec 11, 2012 at 07:24 UTC

    I was wondering if there is a way to fix this?

    Certainly.

    If you want us to help you with it, you'll have to show the relevant code. But if the question is just whether or not it can be fixed, yes, absolutely.


    Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-07-11 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls