[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgiapp
Subject:    RE: [cgiapp] Re: Session support (Using CGIApp and Extropia mods)
From:       bill chmura <WBChmura () Ensign-BickfordInd ! com>
Date:       2000-08-09 11:52:40
[Download RAW message or body]

["BDY.TXT" (text/plain)]

Hey

I am looking at the auth objects now.  I like the idea, but it uses 
"views" ~ which is thier version of templating.  I really would hate to 
get away from the HTML::Template, but I am not sure I can do it without 
it.  We will see.

Here is a code fragment of how the session is created or found.  The 
first block sets up the session object, and the second one creates the 
session manager object.  The last part checks to see if it is a new 
session and if so, makes sure they are forwarded to a login screen.

my @session_params = (
	-TYPE => 'File',
	-MAX_ACCESS_TIME => 60 * 5,
	-SESSION_DIR => '/home/apache/cgi-bin/cgia/sessions',
	-DATA_POLICY => 'CACHE_READS_AND_WRITES'
	);

$sm = Extropia::SessionManager->create(
   	   -TYPE => 'FormVar',
	   -CGI_OBJECT => $web_obj,
	   -FORM_VAR_NAME => 'session',
	   -SESSION_PARAMS => \@session_params
	   );

$session = $sm->createSession();
			
if ($session->isNew())
{
     $web_obj->param ( -name => 'rm' , -value => 'mode2');
}	
		


-----Original Message-----
From:	beyond [SMTP:beyond@casema.net]
Sent:	Wednesday, August 09, 2000 8:17 AM
To:	cgiapp
Cc:	beyond
Subject:	Re: [cgiapp] Re: Session support

Bill,

Could you tell me how you use the Extropia objects in your
cgi::application?
Do you also use the auth and authmanager objects?

Inge


bill chmura wrote:
> 
> The Extropia WebWare2 set (Open Source) has a session and
> sessionmanagement object, which was pretty easy to get working, 
handles
> all of the session work including creation, cleanup, naming of session
> files, getting the session out of the CGI object and also storing and
> retrieving information in the session file.  It does lots more too...
> 
> It worked very easily for me and gives me tons of functionality.  I
> think its a very nice combination
> 
> Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: cgiapp-unsubscribe@lists.vm.com
For additional commands, e-mail: cgiapp-help@lists.vm.com



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic