Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: open sessions management

by jdtoronto (Prior)
on Sep 20, 2006 at 15:27 UTC ( [id://573914]=note: print w/replies, xml ) Need Help??


in reply to open sessions management

Shot? Why? (laughs!)

I use CGI::Session stand-alone in one application and through CGI::Application in many others. Yes, I use a database table. Dont forget you can store information of yourown in the session. In a shopping cart I store the complete transient cart in the session until the user goes to the checkout.

CGI::Session with alittle bit of code will manage the session, what else you need to do witht he session and its data is up to you. Some of the extras you are suggesting are esilly handled with various frameworks - if they need to be addressed at all. Remote user names, IP's and such are in the CGI query, or in the ENV variables for the instance. Current session will usually come back to you in a cookie and is handled by CGI::Session so you don't really need to ask for it, just use it!

Like lots of things in Perl, it happens by magic :) Have you read the tutorial that comes withthe module yet?

jdtoronto

Replies are listed 'Best First'.
Re^2: open sessions management
by leocharre (Priest) on Sep 20, 2006 at 17:11 UTC

    I'm sorry. I was not clear... Yes I've read the tutorials, doc, etc.. Wise to mention.
    I love CGI::Session.. it works great. We just like to drop in every now and then and get a quick look at who's there and what they are doing.

    I hacked together some code to scan the current cgi sessions and spit out a summary.. and let someone kill sessions etc at will. ban ips, etc. I'm coming back to it.. I thought it would be a hack just for temporaty use.. but as it turns out.. it's wanted. So.. I wanted to clean it up- and I can't seem to find a module that handles a quick interface to all sessions open etc ... using storable, not the other ways.

    I am tempted to write-hack together a little module to provide methods to work with multiple cgi sessions that are opened.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-03-28 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found