Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^40: global var

by huck (Prior)
on Apr 29, 2017 at 03:14 UTC ( [id://1189143]=note: print w/replies, xml ) Need Help??


in reply to Re^39: global var
in thread global var

It should have if working correctly

Are you that clueless? its only going to show up if you call for it. It isnt going to show up by some sort of majic. You didnt call the session manager, so it wasnt available. It was your fault, not perls fault. That is true if it is compiled or interpreted. When the program sends its output to the web browser it terminates, poof, all gone.

Getting logged on id from cookie/session foolproof

Then why didnt you just do that in the first place? all it would have taken was getting the cookie and then the session object via that cookie. You need to do this each time a program starts by being called when your browser asks for its cgi enabled web link, because it is starting from scratch each time. That is true if it is compiled or interpreted.

All the units in the source code compiled into object code and linked into an executable (C++ etc)but it is one program and each unit/ob is not executed as a an individual program.

And again you still dont get it. Each time a cgi program is called because a browser asked for its cgi enabled web address it starts a new instance. Nothing is saved from the prior instance that you dont save yourself. That is why you have to check the login status each time a unit is started. That is true if it is compiled or interpreted. Once the contents of the page are sent back to the browser the program terminates and everything it hasnt saved get lost. That is true if it is compiled or interpreted. If you had one compiled monolithic program you would still need to check the logon status each time it started too.

You have some crazy ideas about how programs work. You should try to educate yourself rather than keep assuming and guessing. Now i understand why your code is such a mess.

Log In?
Username:
Password:

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

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

    No recent polls found