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

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

Replies are listed 'Best First'.
Re: cached problems
by GrandFather (Sage) 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?


    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.


Re: cached problems
by Anonymous Monk on Dec 10, 2012 at 23:53 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1008181]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2018-06-19 14:45 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.