Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Is it possible to have 2 CAP::Sessions?

by friedo (Prior)
on Jul 06, 2008 at 00:30 UTC ( #695769=note: print w/replies, xml ) Need Help??


in reply to Is it possible to have 2 CAP::Sessions?

Unfortunately, it looks like CAP::Session does not support having multiple session configs in a single instance. Peeking at the source (which is pretty straightforward) it stores the stuff you pass to session_config in $self->{__CAP__SESSION_CONFIG} and doesn't pay attention to the session names.

It seems like this would be a pretty easy feature to add; maybe I'll take a whack at it in the upcoming weeks or so. For now, I think you're stuck writing your own session wrapper, or stuffing everything together in one session store.

Update: Patch submitted. I must be really bored.

Replies are listed 'Best First'.
Re^2: Is it possible to have 2 CAP::Sessions?
by bradcathey (Prior) on Jul 06, 2008 at 01:16 UTC

    Not what I wanted to hear, but at least it confirms my suspicions.

    Thanks.

    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://695769]
help
Chatterbox?
[Corion]: Weird. this documentation says what you say.
[Corion]: I assume you are experiencing this with your packaged program. Maybe also include PerlApp.pm in the packaging list?
[james28909]: has anyone else run into this problem? i have tried searching but have not returned many results
[james28909]: ah, good idea.
[Corion]: What does print $PerlApp::VERSION output?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-07-28 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (429 votes). Check out past polls.