Re: Apache::Session - What goes in session?

2002-08-20 Thread Perrin Harkins
Ian Struble wrote: > And just to throw one more wrench into the works. You could load up only > the most popular data at startup and let the rest of the data get loaded > on a cache miss. > > That is one technique that we have used for some customer session > servers. It allowed each server t

Re: Apache::Session - What goes in session?

2002-08-20 Thread Ian Struble
; > > > > > > ><[EMAIL PROTECTED]> > >08/20/2002 10:54 AM > > > > > > To: Tony Bowden <[EMAIL PROTECTED]>, md > ><[EMAIL PROTECTED]> > > cc: Perrin Harkins <[EMAIL PROTECTED]>, > >[EMAI

Re: Apache::Session - What goes in session?

2002-08-20 Thread siberian
t;[EMAIL PROTECTED]> > cc: Perrin Harkins <[EMAIL PROTECTED]>, >[EMAIL PROTECTED] > Subject:Re: Apache::Session - What goes >in session? > > >We do see some slowdown on our langauge translation db >calls since they are so intensive. Moving to a &

Re: Apache::Session - What goes in session?

2002-08-20 Thread jjore
at's how I understand the theory to work anyway. Josh <[EMAIL PROTECTED]> 08/20/2002 10:54 AM To: Tony Bowden <[EMAIL PROTECTED]>, md <[EMAIL PROTECTED]> cc: Perrin Harkins <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject:Re: Apach

Re: Apache::Session - What goes in session?

2002-08-20 Thread siberian
Thanks, you just saved us a ton of time. Off to change course ;) J On Tue, 20 Aug 2002 13:12:29 -0400 Perrin Harkins <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >>We are investigating using IPC rather then a file based >>structure but >>its purely investigation at this point. >> >>

Re: Apache::Session - What goes in session?

2002-08-20 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: > We are investigating using IPC rather then a file based structure but > its purely investigation at this point. > > What are the speed diffs between an IPC cache and a Berkely DB cache. My > gut instinct always screams 'Stay Off The Disk' but my gut is not always > r

Re: Apache::Session - What goes in session?

2002-08-20 Thread md
Thanks...you've given me plenty to work with. Great explination. This is good pragmatic stuff to know! __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com

Re: Apache::Session - What goes in session?

2002-08-20 Thread Perrin Harkins
md wrote: > I haven't looked at the cache modules docs yet...would > it be possible to build cache on the separate > load-balanced machines as we go along...as we do with > template caching? Of course. However, if a user is sent to a random machine each time you won't be able to cache anything

Re: Apache::Session - What goes in session?

2002-08-20 Thread siberian
We are investigating using IPC rather then a file based structure but its purely investigation at this point. What are the speed diffs between an IPC cache and a Berkely DB cache. My gut instinct always screams 'Stay Off The Disk' but my gut is not always right.. Ok, rarely right.. ;) John-

Re: Apache::Session - What goes in session?

2002-08-20 Thread Dave Rolsky
On Tue, 20 Aug 2002 [EMAIL PROTECTED] wrote: > Currently we are working on a 'per machine' cache so all > children can benefit for each childs initial database read > of the translated string, the differential between > children is annoying in the 'per child cache' strategy. Sounds like you want

Re: Apache::Session - What goes in session?

2002-08-20 Thread siberian
We do see some slowdown on our langauge translation db calls since they are so intensive. Moving to a 'per child' cache for each string as it came out of the db sped page loads up from 4.5 seconds to .6-1.0 seconds per page which is significant. Currently we are working on a 'per machine' cac

Re: Apache::Session - What goes in session?

2002-08-20 Thread Tony Bowden
On Mon, Aug 19, 2002 at 06:54:01PM -0700, md wrote: > I can definitely get it all from the db, but that doesn't > seem very efficient. Don't worry about whether it *seems* efficient. Do it right, and then worry about how to speed that up - if, and only if, it's too slow. Premature optimisation i

Re: Apache::Session - What goes in session?

2002-08-20 Thread md
IFS, or use a > database. (There are also fancier options with > things like Spread, but > that's getting a little ahead of the game.) You can > use MySQL for > caching, and it will probably have similar > performance to a networked > file system. Unfortunately, the A

Re: Apache::Session - What goes in session?

2002-08-19 Thread Perrin Harkins
bably have similar performance to a networked file system. Unfortunately, the Apache::Session code isn't all that easy to use for this, since it assumes you want to generate IDs for the objects you store rather than passing them in. You could adapt the code from it to suit your needs though. The

Re: Apache::Session - What goes in session?

2002-08-19 Thread md
or Cache::Mmap and take a > look at the examples > there. You use it in a way that's very similar to > what you're doing > with Apache::Session for the things you referred to > as global. There > are also good examples in the documentation for the > Memoize module.

Re: Apache::Session - What goes in session?

2002-08-19 Thread Perrin Harkins
#x27;t cache your data or the output of the templates. What you should do is grab a module like Cache::Cache or Cache::Mmap and take a look at the examples there. You use it in a way that's very similar to what you're doing with Apache::Session for the things you referred to as glo

Re: Apache::Session - What goes in session?

2002-08-19 Thread md
They're not the same. A session is often > stored in a database so > that it can be reliable. A cache is usually stored > on the file system > so it can be fast. The session is stored in a database (Apache::Session::MySQL), and I am using TT caching for the templates, but

RE: Apache::Session - What goes in session?

2002-08-19 Thread Narins, Josh
Thanks though. That was succinctly put. Could you go back in time and tell me that a year or two ago? That would be great, thanks again. -Josh :) > Things like the login status of this session, > and the user ID that is associated with it go > in the session. Status of a particular page >

Re: Apache::Session - What goes in session?

2002-08-19 Thread Perrin Harkins
md wrote: > Currently I'm putting very little in the session Good. You should put in as little as possible. > what I am putting in the session is more "global" in > nature...greeting, current page number, current page > name... That doesn't sound very global to me. What happens when users ope

RE: Apache::Session - What goes in session?

2002-08-19 Thread Jesse Erlbaum
Hello md -- > I'm using mod_perl and Apache::Session on an app that > is similar to MyYahoo. I found a few bits of info from > a previous thread, but I'm curious as to what type of > information should go in the session and what should > come from the database. One thin

Apache::Session - What goes in session?

2002-08-19 Thread md
I'm using mod_perl and Apache::Session on an app that is similar to MyYahoo. I found a few bits of info from a previous thread, but I'm curious as to what type of information should go in the session and what should come from the database. Currently I'm putting very little in t

Re: Apache::Session HELP!

2002-08-09 Thread JPifer
hought.com> Subject: Apache::Session HELP! Sent by: Rafiq

Re: Apache::Session HELP!

2002-08-09 Thread Fran Fabrizio
Wait, ignore that - I was getting my Apache::Session and my Apache::AuthCookie signals crossed. Sorry. -Fran Fran Fabrizio wrote: > > What does your config file look like? All pointing at the right > tables and fields and such? > > -Fran > > Rafiq Ismail (ADMIN) w

Re: Apache::Session HELP!

2002-08-09 Thread Fran Fabrizio
What does your config file look like? All pointing at the right tables and fields and such? -Fran Rafiq Ismail (ADMIN) wrote: >Hi, I'm in major poop. > >Got a presentation soon and my just implemented, implementation of >Apache::Session is not working as per the man page. &

Apache::Session HELP!

2002-08-09 Thread Rafiq Ismail (ADMIN)
Hi, I'm in major poop. Got a presentation soon and my just implemented, implementation of Apache::Session is not working as per the man page. I've set commit to 1 and tied a session to a postgres database. I then set a field and check the table it's not there. When I later do a

ANNOUNCE: Apache::Session::Serialize::YAML 0.01

2002-07-16 Thread Tatsuhiko Miyagawa
Just 8 lines of glue code to use YAML as a Apache::Session serialization handler. Any suuggestions welcome, Thanks. The URL http://bulknews.net/lib/archives/Apache-Session-Serialize-YAML-0.01.tar.gz has entered CPAN as file: $CPAN/authors/id/M/MI/MIYAGAWA/Apache-Session-Serialize-YAML

Re: 'Apache::Session' using REMOTE_USER as key

2002-05-31 Thread Brian Parker
Perrin Harkins wrote: > Brian Parker wrote: > > I'm trying to use Apache::Session::MySQL. Since I'm generating my own > > session key outside of Apache::Session (using $ENV{REMOTE_USER}), what > > method(s) do I have to override to prevent Apache::Session from

Re: 'Apache::Session' using REMOTE_USER as key

2002-05-31 Thread Perrin Harkins
Brian Parker wrote: > I'm trying to use Apache::Session::MySQL. Since I'm generating my own > session key outside of Apache::Session (using $ENV{REMOTE_USER}), what > method(s) do I have to override to prevent Apache::Session from trying > to create a session key for me

'Apache::Session' using REMOTE_USER as key

2002-05-31 Thread Brian Parker
Hi, I would like to implement sessions using only $ENV{REMOTE_USER} as the session key as described on page 259 (Ch. 5) of the Eagle book. I'm trying to use Apache::Session::MySQL. Since I'm generating my own session key outside of Apache::Session (using $ENV{REMOTE_USER}), what meth

Re: Storing blessed objects via Apache::Session

2002-05-21 Thread Chris Winters
On Tue, 2002-05-21 at 19:19, [EMAIL PROTECTED] wrote: > Chris Winters writes: > > Nothing special should be required -- I've done this with no problem > > using recent versions -- 1.50+ -- of Apache::Session. The only way it > > might be a problem is if you're tryi

Re: Storing blessed objects via Apache::Session

2002-05-21 Thread Chris Winters
On Tue, 2002-05-21 at 16:16, [EMAIL PROTECTED] wrote: > I was attempting to store a blessed object via Apache::Session, but > when the session is returned, the hash is empty. I did some google > searching and ran across a similar question: > > http://www.geocrawler.com/archives

Storing blessed objects via Apache::Session

2002-05-21 Thread c.w.huling
I was attempting to store a blessed object via Apache::Session, but when the session is returned, the hash is empty. I did some google searching and ran across a similar question: http://www.geocrawler.com/archives/3/182/2000/5/0/3823715/ I have not found any other information, and was

Re: Apache::Session

2002-05-09 Thread Perrin Harkins
Stathy G. Touloumis wrote: >>You need to do some more debugging. Problems with Apache::Session are >>usually due to scoping, so put in some debug statements to see that the >>session objects for the IDs having trouble are getting properly cleaned >>up (i.e. DESTROY is

RE: Apache::Session

2002-05-09 Thread Stathy G. Touloumis
> You need to do some more debugging. Problems with Apache::Session are > usually due to scoping, so put in some debug statements to see that the > session objects for the IDs having trouble are getting properly cleaned > up (i.e. DESTROY is getting called). It is possible to h

RE: Apache::Session

2002-05-09 Thread Stathy G. Touloumis
> You need to do some more debugging. Problems with Apache::Session are > usually due to scoping, so put in some debug statements to see that the > session objects for the IDs having trouble are getting properly cleaned > up (i.e. DESTROY is getting called). It is possible to h

Re: Basic usage of Apache::Session::Oracle

2002-04-29 Thread Gabriel C Millerd
On Mon, 29 Apr 2002, F. Xavier Noria wrote: > 3. Could one set up things in a way that allows the database to see >the timestamps and program a trigger to delete old sessions? Or >is there a standard idiom for doing this in a different way? > thats what i usually do ..

Re: Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
On Mon, 29 Apr 2002 01:11:59 +0200 "F.Xavier Noria" <[EMAIL PROTECTED]> wrote: : If I understand it correctly, Apache::Session::Oracle uses a table : called "sessions" with at least two columns, one called "id", of type : "varchar2(32)", and anot

Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
If I understand it correctly, Apache::Session::Oracle uses a table called "sessions" with at least two columns, one called "id", of type "varchar2(32)", and another called "a_session", of type "long". Say I want to store a pair of things in sess

Re: Basic usage of Apache::Session::Oracle

2002-04-28 Thread Perrin Harkins
d one set up things in a way that allows the database to see >the timestamps and program a trigger to delete old sessions? Yes. You will have to hack the Apache::Session code to do it, but it's not very hard. Just make it store a timestamp in a different table. Or put a trigg

Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
If I understand it correctly, Apache::Session::Oracle uses a table called "sessions" with at least two columns, one called "id", of type "varchar2(32)", and another called "a_session", of type "long". Say I want to store a pair of things in sess

Basic usage of Apache::Session::Oracle

2002-04-28 Thread F . Xavier Noria
If I understand it correctly, Apache::Session::Oracle uses a table called "sessions" with at least two columns, one called "id", of type "varchar2(32)", and another called "a_session", of type "long". Say I want to store a pair of things in sess

Bug in Apache::Session::Lock::File::clean()

2002-04-25 Thread Rafael Garcia-Suarez
Sorry if this is already known, or if I'm posting to the wrong people, (I'm new to the mod_perl world), but : Looks like there's a minor bug in Apache::Session::Lock::File::clean(). Patch : (against version 1.01, in distribution Apache-Session-1.54) (also adding proper local()iza

Lock block problem with Apache::Session::Oracle

2002-04-18 Thread Brian Lavender
I have Apache::Session::Oracle running. It creates the session fine, but after accessing the page successfully a few times, the script gets held up waiting for a lock to release and page never loads until I restart Apache. Here is the sample code I am using. Is there something I need to do with

Re: Apache::Session suggested mod

2002-04-10 Thread siberian
I once did a one-off mod of Apache::Session to do just this but eventually gave up and just changed my table names. It was to hard to keep in sync with new releases of Apache::Session and I don't have enough faith in my ability to send a real patch :) So I think its a natural path. Whe

Re: Apache::Session suggested mod

2002-04-10 Thread James G Smith
I'm wanting to use it to track sessions and contexts -- sessions can own multiple contexts and contexts can pass from session to session. Basically break identity apart from process. Apache::Session would be ideal for both since the storage mechanisms are identical. Unfortunately, the table name i

Apache::Session suggested mod

2002-04-10 Thread Vuillemot, Ward W
Has anyone ever thought to have the table name modifiable? E.g. instead of 'sessions', you could set it to something like 'preferences' for a given instance. I wanted to maintain session information, but also preferences that are attached to a given username. I could just put the two within the

[PATCH] Apache::Session::Lock::File (Apache::Session 1.54)

2002-03-29 Thread Enrico Sorcinelli
Hi Jeffrey, I've found a bug in clean method of Apache::Session::Lock::File when check lockfiles last access time. In effects the result of expression: (stat($dir.'/'.$file))[8] - $now is always negative and lock dir cleanup isn't done. The patch simply inv

RE: Apache::Session

2002-03-26 Thread Stathy G. Touloumis
) I get a 'false' value returned which I cannot figure out why. > > Has anyone ran into issues with data being written to the data > source using > > Apache::Session::Store::DB_File and Apache::Session::Lock::File? We are > > running into a unique instance where

[ANNOUNCE] PHP::Session 0.06 & Apache::Session::PHP

2002-03-26 Thread Tatsuhiko Miyagawa
Announcing the update of PHP::Session and yet another module of nightmare. You can download 'em from http://bulknews.net/lib/archives/ and CPAN. NAME Apache::Session::PHP - glues Apache::Session with PHP::Session SYNOPSIS use Apache::Session::PHP; tie %session, &#

Re: Apache::Session

2002-03-26 Thread Jeffrey W. Baker
On Mon, 2002-03-25 at 15:44, Stathy G. Touloumis wrote: > Has anyone ran into issues with data being written to the data source using > Apache::Session::Store::DB_File and Apache::Session::Lock::File? We are > running into a unique instance where a value is not being saved to the > s

Apache::Session

2002-03-25 Thread Stathy G. Touloumis
Has anyone ran into issues with data being written to the data source using Apache::Session::Store::DB_File and Apache::Session::Lock::File? We are running into a unique instance where a value is not being saved to the session store at a certain point through a workflow. There are multiple

Re: Can't locate TIEHASH Apache::Session::Oracle

2002-03-11 Thread Brian Lavender
On Mon, Mar 11, 2002 at 02:08:10PM -0800, Brian Lavender wrote: > I am trying to test the Apache::Session::Oracle > > Here is the error I am getting. What is wrong? I was able to > successfully install and test Apache::Session which tested > Apache::Session::Oracle > &

Re: Can't locate TIEHASH Apache::Session::Oracle

2002-03-11 Thread Mark P. Fister
On Mon, Mar 11, 2002 at 02:08:10PM -0800, Brian Lavender wrote: > I am trying to test the Apache::Session::Oracle > > Here is the error I am getting. What is wrong? I was able to > successfully install and test Apache::Session which tested > Apache::Session::Oracle > &

Can't locate TIEHASH Apache::Session::Oracle

2002-03-11 Thread Brian Lavender
I am trying to test the Apache::Session::Oracle Here is the error I am getting. What is wrong? I was able to successfully install and test Apache::Session which tested Apache::Session::Oracle This is the error. [Mon Mar 11 14:01:23 2002] [error] Can't locate object method "TI

Re: Apache::Session problem with DBD::Oracle

2002-03-11 Thread Brian Lavender
t; > On Mon, Mar 11, 2002 at 02:33:17PM -0500, Geoffrey Young wrote: > > Brian Lavender wrote: > > > > > > I am trying to install Apache::Session and it is failing on > > > the DBD::Oracle tests. It is asking for a default user. Do > > > I need to con

Re: Apache::Session problem with DBD::Oracle

2002-03-11 Thread Brian Lavender
er wrote: > > > > I am trying to install Apache::Session and it is failing on > > the DBD::Oracle tests. It is asking for a default user. Do > > I need to configure Oracle for a default user? Or do I need > > to set some environment variable with a user id and password? > >

Re: Apache::Session problem with DBD::Oracle

2002-03-11 Thread Ken Y. Clark
On Mon, 11 Mar 2002, Brian Lavender wrote: > Date: Mon, 11 Mar 2002 11:24:35 -0800 > From: Brian Lavender <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Apache::Session problem with DBD::Oracle > > I am trying to install Apache::Session and it is failing on > t

Re: Apache::Session problem with DBD::Oracle

2002-03-11 Thread Geoffrey Young
Brian Lavender wrote: > > I am trying to install Apache::Session and it is failing on > the DBD::Oracle tests. It is asking for a default user. Do > I need to configure Oracle for a default user? Or do I need > to set some environment variable with a user id and password? wel

Apache::Session problem with DBD::Oracle

2002-03-11 Thread Brian Lavender
I am trying to install Apache::Session and it is failing on the DBD::Oracle tests. It is asking for a default user. Do I need to configure Oracle for a default user? Or do I need to set some environment variable with a user id and password? brian Here are the errors I am getting: t/99oracle

Re: Apache::Session problems

2002-02-28 Thread Adam Worrall
ble.pm (autosplit >> into blib/lib/auto/Storable/thaw.al) line 351, at >> /usr/local/lib/perl5/site_perl/5.6.1/Apache/Session/Serialize/Storable.p >> m line 27 CW> This sounds like someone with a more recent version of Storable CW> in their private lib

Re: Apache::Session problems

2002-02-28 Thread Chris Winters
On Thu, 2002-02-28 at 06:16, Domien Bakker wrote: > Hello, > > I am trying to use Apache::Session to store http session information. > The version number of Apache::Session is 1.54. It is running on > Apache/1.3.20 (Unix) mod_perl/1.26 configured. > ... > Both methods reso

Apache::Session problems

2002-02-28 Thread Domien Bakker
Title: Apache::Session problems Hello, I am trying to use Apache::Session to store http session information. The version number of Apache::Session is 1.54. It is running on Apache/1.3.20 (Unix) mod_perl/1.26 configured. I am using the TicketTool from the o'reilly book, I make a t

Re: Apache::Session

2002-02-26 Thread Jon Robison
As an add-on to this, does anyone know if one could use MySQL HEAP (memory resident) tables for the session table? --Jon Robison Rob Bloodgood wrote: > > > I am using Apache::Session with Postgresql. Unfortunately I had > > never worked with a huge amount of data before I sta

RE: Apache::Session

2002-02-25 Thread Rob Bloodgood
> I am using Apache::Session with Postgresql. Unfortunately I had > never worked with a huge amount of data before I started to program > something like a (little) web application. I happily packed > everything in the "session"(s-table) that might be of any use. It > hi

Re: Apache::Session

2002-02-24 Thread Milo Hyson
tie/un-tie the hash. I found it helpful to take apart the various Apache::Session modules and see what makes them tick. -- Milo Hyson CyberLife Labs, LLC

Re: Apache::Session

2002-02-24 Thread Jeffrey W. Baker
On Sun, 2002-02-24 at 02:43, Christoph Lange wrote: > Hi Milo, > > thanks for your answer. I hope you will excuse, but I am not sure > whether I got you right. > > The session hash is serialized/deserialized in its entirety using the > > Storable module. > Does this mean, that - after tying the s

Re: Apache::Session

2002-02-24 Thread Christoph Lange
Hi Milo, thanks for your answer. I hope you will excuse, but I am not sure whether I got you right. > The session hash is serialized/deserialized in its entirety using the > Storable module. Does this mean, that - after tying the session hash - it is of no importance (concerning the amount of tim

Re: Apache::Session

2002-02-23 Thread Milo Hyson
On Saturday 23 February 2002 03:03 pm, Christoph Lange wrote: > Hi, > > I guess that this is going to be another "what-a-bloody-beginner"-question > but I hope somebody will be in a good mood and help me out. > > I am using Apache::Session with Postgresql. Unfortunate

Apache::Session

2002-02-23 Thread Christoph Lange
Hi,   I guess that this is going to be another "what-a-bloody-beginner"-question but I hope somebody will be in a good mood and help me out.   I am using Apache::Session with Postgresql. Unfortunately I had never worked with a huge amount of data before I started to program some

locking bug in Apache::Session::File

2002-01-18 Thread William White
I've been told this is the place to send questions related to apache perl modules. I believe I have discovered a locking bug in Apache::Session::File. The following code should retrieve an existing session from the file system and place an exclusive lock on the session file: my $locking

Re: Apache::Session getting DESTROYed in wrong order

2002-01-18 Thread Perrin Harkins
> I register a clean up handler to explicitly untie the session variable. I have found that it's safer to put things in pnotes than to use globals and cleanup handlers. We used a lot of cleanup handlers at eToys to clear globals holding various request-specific things, and we started getting unp

Re: Apache::Session getting DESTROYed in wrong order

2002-01-18 Thread Jay Lawrence
ns" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 1:53 AM Subject: Re: Apache::Session getting DESTROYed in wrong order > > On Friday, January 18, 2002, at 12:44 AM, Perrin Harkins wrote: > > >> In a Mason context, which is where I'

Re: Apache::Session getting DESTROYed in wrong order

2002-01-17 Thread Ken Williams
t; # 'local' so it's available to lower-level components >> local *session; >> >> my $dbh = &::get_dbh; >> my $session_id = &::get_cookie('_session_id'); >> tie %session, 'Apache::Session::MySQL', $session_id, >>

Re: Apache::Session getting DESTROYed in wrong order

2002-01-17 Thread Perrin Harkins
session; > > my $dbh = &::get_dbh; > my $session_id = &::get_cookie('_session_id'); > tie %session, 'Apache::Session::MySQL', $session_id, >{Handle => $dbh, LockHandle => $dbh}; > ... > Geez, that's awfully confusing to

Re: Apache::Session getting DESTROYed in wrong order

2002-01-17 Thread Ken Williams
On Friday, January 4, 2002, at 02:22 AM, Ken Williams wrote: > For the sake of thread completion, here's a script which demonstrates > the bug. It turns out to be a Perl bug (5.6.1, at least), not an > Apache::Session bug. I'll post to p5p after I post here. I was su

Re: Apache::Session getting DESTROYed in wrong order

2002-01-08 Thread Jeffrey W. Baker
> > sub X::TIEHASH{bless{}} > { local %x; tie %x, "X" } print tied %x ? "a" : "b"; > > 5.004_03 prints "b", and 5.004_04 (and higher) prints "a". I think "b" > is the proper behavior, at least that's my op

Re: Apache::Session getting DESTROYed in wrong order

2002-01-04 Thread Ken Williams
On Friday, January 4, 2002, at 02:48 AM, Gerald Richter wrote: >># Won't get cleaned up properly >>local %foo; >>tie %foo, 'Dummy', name => '%foo'; > > local only make a copy of the original value and restores it at the end > of > the scope, so %foo will not destroyed, but restored

Re: Apache::Session getting DESTROYed in wrong order

2002-01-04 Thread Gerald Richter
># Won't get cleaned up properly >local %foo; >tie %foo, 'Dummy', name => '%foo'; local only make a copy of the original value and restores it at the end of the scope, so %foo will not destroyed, but restored at the end of the scope. I guess this is the reason my it still stays tied.

Re: Apache::Session getting DESTROYed in wrong order

2002-01-04 Thread Ken Williams
Hey, For the sake of thread completion, here's a script which demonstrates the bug. It turns out to be a Perl bug (5.6.1, at least), not an Apache::Session bug. I'll post to p5p after I post here. Note that $foo and %bar are cleaned up by refcount, but %foo isn't cleaned

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Ken Williams
On Thursday, January 3, 2002, at 02:02 PM, Jeffrey W. Baker wrote: > This seems like a really weird problem. The Store module is destroyed > while another module still has a reference to it. Unfortunately for you > and I, the only conclusion I have been able to draw is that Perl's > DESTROY >

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Jeffrey W. Baker
On Mon, 31 Dec 2001, Ken Williams wrote: > Hey, > > I'm having problems with Apache::Session, the symptom is that none of my > data is getting written to the database. It's not the nested-data > problem, since I'm not using any nested data structures. >

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Perrin Harkins
> The circular reference was the only way I could think of to force an > object to be destroyed during global destruction. What happens if you use a global? > Hmm, that may be - Mason does create more closures now than it used to. > It seems like only 'named' closures would create this problem,

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Ken Williams
On Thursday, January 3, 2002, at 11:57 AM, Perrin Harkins wrote: >> I don't have a test case involving Apache::Session yet (I've been out >> of >> town for a couple days), but here's a simple one in Perl that >> demonstrates the DESTROY order problem: &g

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Perrin Harkins
> I don't have a test case involving Apache::Session yet (I've been out of > town for a couple days), but here's a simple one in Perl that > demonstrates the DESTROY order problem: That's sort of a weird example, since it has a circular reference. Does it have prob

Re: Apache::Session getting DESTROYed in wrong order

2002-01-03 Thread Ken Williams
Hi Aaron, I don't have a test case involving Apache::Session yet (I've been out of town for a couple days), but here's a simple one in Perl that demonstrates the DESTROY order problem: -- #!/usr/bin/perl { packag

Re: Apache::Session getting DESTROYed in wrong order

2002-01-02 Thread Aaron E. Ross
Hi Ken, > refcount destruction. I've declared %session as a locally-scoped > variable, so it should evaporate before global destruction, unless it's > got circular data structures or something. Anyone know what might be > going on? Do you have a simple case we can test yet? Aaron

Apache::Session getting DESTROYed in wrong order

2001-12-31 Thread Ken Williams
Hey, I'm having problems with Apache::Session, the symptom is that none of my data is getting written to the database. It's not the nested-data problem, since I'm not using any nested data structures. After some investigation, I've discovered that the Apache::Session::S

Re: Apache::Session using Frames

2001-12-09 Thread Perrin Harkins
n other frames send their requests. - Not using the locking API correctly. You didn't post any code, but the locking options for Apache::Session sometimes trip people up and you may have had a misconfiguration of some kind. Anyway, there's nothing wrong with writing directly to the

Re: Apache::Session using Frames

2001-12-09 Thread Michael A Nachbaur
Just to let anyone who was wondering (and for the benefit of the archives), I ended up ditching sessions all together. Instead, I'm using Apache::AuthDBI to do authentication, and am making calls directly to my database server to maintain state. Its not the most pleasant way of maintaining state

Apache::Session using Frames

2001-12-09 Thread Michael A Nachbaur
I have been beating my head against this problem for days, to no avail. I have tried google searches, etc., still no dice. So, I apologize for the noise people. I'm using Apache::Session and cookies to perform session management. In watching the debug messages in my error_log, I ca

RE: Apache::Session and frames

2001-12-05 Thread simran
[EMAIL PROTECTED] Subject: Re: Apache::Session and frames At 3:06 PM -0800 12/5/01, Michael A Nachbaur wrote: >I have been beating my head against this problem for days, to no >avail. I have tried google searches, etc., still no dice. So, I >apologize for the noise people. > >

Re: Apache::Session and frames

2001-12-05 Thread Larry Leszczynski
Hi Michael - > I'm using Apache::Session and cookies to perform session management. In > watching the debug messages in my error_log, I can see that the cookie > is created, the session is created, and all subsequent calls correctly > loads the session. However, part of

Re: Apache::Session and frames

2001-12-05 Thread Robert Landrum
At 3:06 PM -0800 12/5/01, Michael A Nachbaur wrote: >I have been beating my head against this problem for days, to no >avail. I have tried google searches, etc., still no dice. So, I >apologize for the noise people. > >I'm using Apache::Session and cookies to perform sess

Re: Apache::Session and frames

2001-12-05 Thread Michael A Nachbaur
own frames, and each attempts to load the session. Occasionally, one of them successfully loads the original session, but the other two end up creating their own sessions. When I call: tie %session, 'Apache::Session::Flex', $id, \%options; it doesn't return anything in $@, excep

Apache::Session and frames

2001-12-05 Thread Michael A Nachbaur
I have been beating my head against this problem for days, to no avail. I have tried google searches, etc., still no dice. So, I apologize for the noise people. I'm using Apache::Session and cookies to perform session management. In watching the debug messages in my error_log, I ca

RE: Apache::Session Problem -- Addendum

2001-11-28 Thread Perrin Harkins
On Thu, 22 Nov 2001, Jonathan M. Hollin wrote: > My code now includes: > > 35: # Session handler... > 36: my %session; undef my $session_id; > 37: use Apache::Session::MySQL; > 38: tie %session, 'Apache::Session::MySQL', $session_id, > 39: { DataSource =&

RE: Apache::Session Problem -- Addendum

2001-11-22 Thread Paul DuBois
istribution there. This accompanies the book for which the aforementioned URL is the home site. Said book has a chapter on sessions focusing on Apache::Session, so you may find the example scripts useful for helping you solve your problem. > >My code now includes: > >35: # Session handl

RE: Apache::Session Problem -- Addendum

2001-11-22 Thread Jonathan M. Hollin
Thank you everyone for the quality of help I've so far received and your rapid responses. However... :-( My code now includes: 35: # Session handler... 36: my %session; undef my $session_id; 37: use Apache::Session::MySQL; 38: tie %session, 'Apache::Session::MySQL',

Re: Apache::Session Problem -- Addendum

2001-11-21 Thread Tatsuhiko Miyagawa
On Wed, 21 Nov 2001 23:23:33 - "Jonathan M. Hollin" <[EMAIL PROTECTED]> wrote: > 42: tie %session, 'Apache::Session::DBI', > 43: {DataSource => "dbi:$db_driver:sessions:$db_address"}; put $sid (session id: undef for fresh) after 'Apach

Re: Apache::Session Problem -- Addendum

2001-11-21 Thread Perrin Harkins
> I changed "Apache::Session::DBI" to "Apache::Session::MySQL" and tried > again. What's the version number of your Apache::Session? It should be 1.54. > 42: tie %session, 'Apache::Session::DBI', > 43: {DataSource => "dbi:$db_driver:se

<    1   2   3   4   5   6   >