Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^8: CGI and persistent data

by astroboy (Chaplain)
on Sep 01, 2009 at 21:19 UTC ( #792736=note: print w/ replies, xml ) Need Help??


in reply to Re^7: CGI and persistent data
in thread CGI and persistent data

I'm not sure this will solve the OP's problem. If the FastCGI program saves its state to some global variables between requests, the next request might be from a different user. I think you'll still need to maintain session state that will be tied to a specific user


Comment on Re^8: CGI and persistent data
Re^9: CGI and persistent data
by bv (Friar) on Sep 01, 2009 at 22:31 UTC

    True, you'll need to maintain session state yourself. A trivial example (that has plenty of bugs):

    print "<p>Hello, ", $session{$cookie}->{name}, ", welcome back</p>"
    print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-08-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (278 votes), past polls