Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
laziness, impatience, and hubris
 
PerlMonks  

Re^4: CGI::Application::Session and Inheritance

by gman (Friar)
on Apr 19, 2005 at 14:39 UTC ( [id://449382]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^3: CGI::Application::Session and Inheritance
in thread CGI::Application::Session and Inheritance

Ok, sorrry I am still a little (ok, a lot) confused.
Right now I have (cgi script)->(Index.pm)->(module1.pm)
Are you saying I should be doing everything that requires access to my session object needs to be done in Index.pm? Or if I create an instance of module1 in my cgi script, it must be done in that module? Thanks for your insite, I will contine to try to make sense yours and Joost's sugestions. Thanks
  • Comment on Re^4: CGI::Application::Session and Inheritance

Replies are listed 'Best First'.
Re^5: CGI::Application::Session and Inheritance
by mpeters (Chaplain) on Apr 19, 2005 at 14:53 UTC
    as was said above, you need to create an instance of you child class (module1), not your parent class (Index). The parent class knows nothing about the child class. That's what OOP is about.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://449382]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.