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

List:       apache-modperl
Subject:    Re: Apache::Session::Postgres
From:       Casey West <casey () geeknest ! com>
Date:       2004-09-29 15:42:49
Message-ID: 20040929154249.GQ27840 () geeknest ! com
[Download RAW message or body]

It was Tuesday, September 28, 2004 when desarrollos@ollinca.net took the soap box, saying:
: Well, i have created an Object Session, now how can i get it again?
: 
:     tie %sesion, 'Apache::Session::Postgres', undef, {
: 	
: 	DataSource => 'dbi:Pg:dbname=sessions',
: 	UserName => $bd->{user},
: 	Password => '',
: 	Commit => 1
: 	};
: 
: through a Cookie or something? I have to save my id, always?

What you've done here is created a new session. It's unique identifier
is in $session{_session_id}. If you want to retrieve this session in a
stateless environment (for example, mod_perl between page requests) then
storing the session id (or some hashed representation of it) in a cookie
is a fine means of saving it for later use. Yes, you must do this.

  Casey West

-- 
<crab> Invalid [] range "a-Z" in the-operator-that-replaces-
  sets-of-character-ranges-with-other-sets-of-character-ranges at
  /usr/local/pkg/perl5.005_03-MAINT21792/lib/5.00503/vars.pm line 17.


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

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

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