Re: Apache::Session permissions problem

2003-09-15 Thread Perrin Harkins
Eric, Sorry if I came off overly critical. Many people have had problems trying to use Mason with Apache::Session because of that article. This is why on the Mason website the link to that article describes it as outdated and steers people to newer documentation. (It probably should also

Re: Apache::Session permissions problem

2003-09-15 Thread Eric Schwartz
On Saturday, Sep 13, 2003, at 09:22 America/Denver, Perrin Harkins wrote: I found a pretty useful article at http://www.linuxjournal.com/article.php?sid=4143 on how to use Apache::Session with Mason. I'm afraid that is not a very good article. It's out of date, and shows poor erro

Re: Apache::Session permissions problem

2003-09-15 Thread Enrico Sorcinelli
On Fri, 12 Sep 2003 01:01:24 -0600 Eric Schwartz <[EMAIL PROTECTED]> wrote: Hi Eric, > I found a pretty useful article at > http://www.linuxjournal.com/article.php?sid=4143 on how to use > Apache::Session with Mason. I wrote a tutorial on session management with HTML::Ma

RE: Apache::Session permissions problem

2003-09-14 Thread Perrin Harkins
te. There you would have found a note that the article you read is outdated, and a link to the current docs:http://masonhq.com/user/adpacifico/ApacheSessionMason.html > PS: Apache::Session::DBI might be ancient, when I did some research for > this mail I stumbled upon > http

RE: Apache::Session permissions problem

2003-09-14 Thread Frank Maas
> I'm afraid that is not a very good article. It's out of date, ... > Apache::Session::DBI (which is what the article refers to) is ancient > and should not be used. I stumbled upon this problem quite a few times. Trying to get the hang of using cookies for authentication and

Re: Apache::Session permissions problem

2003-09-13 Thread Perrin Harkins
> I found a pretty useful article at > http://www.linuxjournal.com/article.php?sid=4143 on how to use > Apache::Session with Mason. I'm afraid that is not a very good article. It's out of date, and shows poor error handling. If you want to use sessions with Mason, you

Apache::Session permissions problem

2003-09-12 Thread Eric Schwartz
I found a pretty useful article at http://www.linuxjournal.com/article.php?sid=4143 on how to use Apache::Session with Mason. I followed the article, more or less, and ended up with this bit of code in my handler.pl to tie() my $session variable to an Apache::Session class: eval { tie

Re: Apache::Session and pnotes

2003-09-05 Thread Perrin Harkins
cycle of that particular request > Apache::Session::Oracle stores the session in the database. It happens when the session object gets destroyed. > The problem I am facing is that if the session is stored in pnotes() it > doesn't end up in the database. When the user comes back that id &g

Re: Apache::Session and pnotes

2003-09-05 Thread Enrico Sorcinelli
you know, somewhere in the request cycle of that particular request > Apache::Session::Oracle stores the session in the database. > > When later that very user comes back to the website with a valid session > id in the cookie, one reads the session from the database. > > The proble

Re: Apache::Session and pnotes

2003-09-02 Thread Xavier Noria
try to reword it. Let's assume a new user comes to the website. We set up a session for him and put the session id in a cookie to be sent in the response. As you know, somewhere in the request cycle of that particular request Apache::Session::Oracle stores the session in the database. When later

Re: Apache::Session and pnotes

2003-09-02 Thread Perrin Harkins
ssion_id = $cookie->value; > my %session; > eval { > tie %session, 'Apache::Session::Oracle', $session_id, > {Handle => $class->dbh(), Commit => 1}; > }; Okay, but I was asking how you get it back from pnotes. > That code works

Re: Apache::Session extra record not write to Mysql db.

2003-09-02 Thread Perrin Harkins
= > 'username' which add it to the column a_session. That's right. > i know Apache::Session can't do session managerment directly. but i found out that > when a user > session timeout, the record also gone automatically.is tied(%session)->delete; > delete t

Re: Apache::Session extra record not write to Mysql db.

2003-09-02 Thread Anton Permyakov
> > > $session{'time'} = time();## this updates 'time' record > > > > But it doesn't update the time column in the database unless you hacked > > the Apache::Session code to do that. > > > > now i don't know wh

Re: Apache::Session extra record not write to Mysql db.

2003-09-02 Thread James.Q.L
ng just fine. however, after i > > added one more > > field (username) to the sessions table through phpmysql, updating it in the program > > seems has no effect on the username record. no problem on others. > > Do you understand what Apache::Session does? It simply u

Re: Apache::Session extra record not write to Mysql db.

2003-09-02 Thread Perrin Harkins
phpmysql, updating it in the program seems has no effect on the username record. no problem on others. Do you understand what Apache::Session does? It simply use Storable to turn the whole hash of values into a single binary chunk and stores it all in the a_session field. It uses the id field to find

Re: Apache::Session and pnotes

2003-09-02 Thread Xavier Noria
On Tuesday 02 September 2003 07:46, you wrote: (I am sorry I am not replying to the actual email, but to a forwarded copy from my desktop at home.) > > It seems, however, that Apache::Session objects stop being stored > > when I put the session in pnotes() with a code analogous to t

Re: Apache::Session and pnotes

2003-09-02 Thread Perrin Harkins
Xavier Noria wrote: It seems, however, that Apache::Session objects stop being stored when I put the session in pnotes() with a code analogous to this: Can you tell us more about the problem is? What do you see when you take the session hash back out of pnotes? my $r = Apache::Request

Apache::Session extra record not write to Mysql db.

2003-09-01 Thread James.Q.L
i am experiencing a weird problem with the use of apache::session::mysql before i had three fields in table sessions : a_session,id,time in the DB. and updating table etc from the program was working just fine. however, after i added one more field (username) to the sessions table through

Apache::Session and pnotes

2003-09-01 Thread Xavier Noria
I am trying to retrieve/create an Apache::Session object for a given user in the authentication phase, so the following handlers have them available via pnotes. Sessions are stored in an Oracle database. It seems, however, that Apache::Session objects stop being stored when I put the session

Re: Apache::Session

2003-08-22 Thread Marcel Greter
All the information that comes from the user-agent can be faked. So the session id is as insecure as any other identifier you get from the Browser. The only thing that could be used is the IP address, and as somebody said earlier, some ISPs and big company LANs may use different proxies for dif

Re: Apache::Session

2003-08-14 Thread Perrin Harkins
On Thursday 14 August 2003 8:06 am, Joelle Nebbe wrote: > What i do is store both the remote IP and the user agent HTTP parameters in > the session when the session is created. Whenever a new request comes in > with that session I check that those havent changed. So, you don't care about AOL users

Re: Apache::Session

2003-08-14 Thread Patrick Galbraith
ff trolls! Aleksandr Guidrevitch wrote: Hi, All Sorry, this post might be out of scope of this particular list, but still... don't punch me heavily :) I just think the people here might have met this problem while deploying big public applications. I use Apache::Session to identify logged in

Re: Apache::Session

2003-08-14 Thread Joelle Nebbe
Hi I do a few basic things that improve security - its still not strict security but What i do is store both the remote IP and the user agent HTTP parameters in the session when the session is created. Whenever a new request comes in with that session I check that those havent changed. If they h

Re: Apache::Session

2003-08-14 Thread Raf
Aleksandr Guidrevitch said: ... > Is it possible to uniquely identify the user by some attributes ? > The only thing I consider now is IP, but what about proxies and NATs ? > User Agent string could also be stolen via javascript. That means I tend > to make stolen session ids non-reusable. Went t

Apache::Session

2003-08-14 Thread Aleksandr Guidrevitch
Hi, All Sorry, this post might be out of scope of this particular list, but still... don't punch me heavily :) I just think the people here might have met this problem while deploying big public applications. I use Apache::Session to identify logged in users. However, the users are allow

Re: Apache::Session

2003-08-14 Thread Aleksandr Guidrevitch
Hi, All What have you used to stip out that stuff ? I've reviewied HTML::StripScripts, but it seems to be very slow. I've also considered HTML::Filter to do that but I'm also affraid that HTML::Parser is not the fastest thing on the earth, even though it will be invoked once during initial submi

Re: Apache::Session

2003-08-14 Thread Patrick Galbraith
Aleksandr, we had our own stripping methods. Just get the source for slashcode http://slashcode.com and look for Slash/Display/Display.pm: strip_paramattr => \&strip_paramattr, Slash/Display/Display.pm: strip_urlattr => \&strip_urlattr, Slash/Display/Display.pm: strip_anchor

Re: Apache::Session

2003-08-14 Thread O'K Web Design
Hi I might be missing the point but if you already are tracking with Apache::Session why not encrypt the session id before giving it to the user in the first place. You could store a public 'key' for the encryption in a cookie on the users machine. That way only that user can gi

Re: "Magic number checking on storable" error with Apache::Session::MySQL

2003-07-10 Thread Stas Bekman
Dan McCormick wrote: Hi, I'm running a site with Apache, MySQL, Mason, and Apache::Session::MySQL. I've been sporadically seeing this message in my error log: [Wed Jul 9 20:41:42 2003] [error] Magic number checking on storable string failed at blib/lib/Storable.pm (autosplit into bli

Re: Apache::Session::Lock::File hangs under Windows

2003-07-08 Thread Enrico Sorcinelli
On Tue, 8 Jul 2003 10:26:54 +0400 "Andrew Alakozow" <[EMAIL PROTECTED]> wrote: Hi Andrew > > BTW, 'clean' method of this model hangs as well. > Also Apache::Session::Lock::File (1.54) 'clean' method has a little bug in checking lockfiles las

Re: Apache::Session::Lock::File hangs under Windows

2003-07-07 Thread Andrew Alakozow
PH> On Mon, 2003-07-07 at 07:29, Andrew Alakozow wrote: >> Apache::Session::Lock::File hangs under Windows if you try to remove >> session or add data to existing session. This happenes because you >> cannot "flock($self->{fh}, LOCK_EX)" if you already has &

Re: Apache::Session::Lock::File hangs under Windows

2003-07-07 Thread Perrin Harkins
On Mon, 2003-07-07 at 07:29, Andrew Alakozow wrote: > Apache::Session::Lock::File hangs under Windows if you try to remove > session or add data to existing session. This happenes because you cannot > "flock($self->{fh}, > LOCK_EX)" if you already has "flock($se

Apache::Session::Lock::File hangs under Windows

2003-07-07 Thread Andrew Alakozow
Hello, This may be OT, but may be not though Apache::Session is widely used under mod_perl. Apache::Session::Lock::File hangs under Windows if you try to remove session or add data to existing session. This happenes because you cannot "flock($self->{fh}, LOCK_EX)" if you already has

Re: [error] Insecure dependency in unlink while running with-Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pmline106

2003-02-28 Thread Martin Moss
ebruary 28, 2003 2:52 PM Subject: Re: [error] Insecure dependency in unlink while running with-Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pmline106 > On Fri, 2003-02-28 at 09:10, Martin Moss wrote: > > I can't use Apache::DBI. > > I have multiple databa

Re: [error] Insecure dependency in unlink while running with-Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pmline106

2003-02-28 Thread Perrin Harkins
If you just want to cache data, don't use Apache::Session for that. Use IPC::MM, Cache::Mmap, Cache::FileCache, or MLDBM::Sync. - Perrin

Re: [error] Insecure dependency in unlink while running with -Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line106

2003-02-28 Thread Martin Moss
ially as I could be operating on 100's of records. I was using Apache::Session to generate session IDs and allow me to timeout users etc... Marty - Original Message - From: "Perrin Harkins" <[EMAIL PROTECTED]> To: "Martin Moss" <[EMAIL PROTECTED]> C

Re: [error] Insecure dependency in unlink while running with -Tswitch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line106

2003-02-28 Thread Perrin Harkins
On Fri, 2003-02-28 at 08:47, Martin Moss wrote: > Is Apache::Session::DB_type Faster than Apache::Session::File? It depends on your disk, OS, and filesystem. It stores all the files in one directory, which is quite slow on some systems and not a problem on others. > I already use a lot

Re: [error] Insecure dependency in unlink while running with -T switch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106

2003-02-28 Thread Martin Moss
Is Apache::Session::DB_type Faster than Apache::Session::File? I already use a lot of DB connections and I used Apache::Session::File to reduce this, Marty - Original Message - From: "Cees Hek" <[EMAIL PROTECTED]> To: "Martin Moss" <[EMAIL PROTECTED]> Cc:

Re: [error] Insecure dependency in unlink while running with -T switchat /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106

2003-02-27 Thread Stas Bekman
Quoting Martin Moss <[EMAIL PROTECTED]>: just a minor comment regarding untainting techniques. If do /(.*)/ to launder tainted vars as you did in: if ($Directory =~ /^XX_GR_XX(.*)XX_GR_XX$/) you can as well turn the taint mode off. For more info see: http://www.gunther.web66.com/FAQS/ta

Re: [error] Insecure dependency in unlink while running with -T switch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106

2003-02-27 Thread Cees Hek
Quoting Martin Moss <[EMAIL PROTECTED]>: > All, > Can Anybody see what I'm doing wrong here? > > I have the following error :- > [error] Insecure dependency in unlink while running with -T switch at > /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 1

[error] Insecure dependency in unlink while running with -T switch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106

2003-02-27 Thread Martin Moss
All, Can Anybody see what I'm doing wrong here? I have the following error :- [error] Insecure dependency in unlink while running with -T switch at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store/File.pm line 106. When I run the following subroutine:- sub delete_session { my $self=

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-26 Thread Perrin Harkins
md wrote: --- md <[EMAIL PROTECTED]> wrote: Is it possible to have row-level locking (as opposed to table-level or null locker) with MySQL 4.x and Apache::Session? You effectively have that already, since the MySQL locker only locks an individual session. Check the code. Looks like I ge

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-26 Thread md
--- md <[EMAIL PROTECTED]> wrote: > Is it possible to have row-level locking (as opposed > to table-level or null locker) with MySQL 4.x and > Apache::Session? Looks like I get that with InnoDB automatically... __ Do you Yah

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-26 Thread md
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > If you look at the actual contents of > Apache::Session::MySQL, you'll see > that it's essentially just a config file. There's > no need to be > concerned about using Flex, but you could easilly &

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-25 Thread md
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > It would be. Frankly, there is no value to the kind > of mutual exclusion > that the Apache::Session locking provides in a > typical web application. > If you use the null locker you will still get > atomic updates,

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-25 Thread Perrin Harkins
md wrote: Also, we'll soon be adding a substantial number of users to our system and I wonder if it would be wise to move away from the table locking that is currently being used with Apache::Session::MySQL. It would be. Frankly, there is no value to the kind of mutual exclusion that the A

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-25 Thread Cory 'G' Watson
On Tuesday, February 25, 2003, at 11:55 AM, md wrote: We're using Apache::Session::MySQL (Apache::Session 1.54) and occassionaly see long lock times. I had a similar problem a few months ago with Apache::Session::Postgres. I occasionally had Apache processes hang, and a quick ps aux sh

Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-25 Thread md
We're using Apache::Session::MySQL (Apache::Session 1.54) and occassionaly see long lock times. Also, we'll soon be adding a substantial number of users to our system and I wonder if it would be wise to move away from the table locking that is currently being used with Apache::Sess

RE: Apache::Session and Postgres

2003-02-25 Thread Grant McLean
Perrin Harkins wrote: > On Mon, 2003-02-24 at 07:09, Grant McLean wrote: > > I get this error: > > > > Can't locate object method "get_lock_manager" via package > > "Apache::Session::Postgres" > > > > And indeed, that method doe

Re: Apache::Session and Postgres

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 07:09, Grant McLean wrote: > I get this error: > > Can't locate object method "get_lock_manager" via package > "Apache::Session::Postgres" > > And indeed, that method does not seem to be defined in any of the modules > whi

Apache::Session and Postgres

2003-02-24 Thread Grant McLean
I'm trying to use Apache::Session::Postgres and not having much luck. When I try to create a new session like this: use Apache::Session::Postgres; tie %sess, 'Apache::Session::Postgres', undef, { Handle => $self->dbh, Commit => 1 }; I get this error: Ca

RE: mod_perl 2 apache::session and "or die"

2003-02-21 Thread Chris Faust
ECTED] >> Sent: Friday, February 21, 2003 12:02 PM >> To: Chris Faust >> Cc: Modperl >> Subject: Re: mod_perl 2 apache::session and "or die" >> >> >> Chris Faust wrote: >> > I think it is in the locking as if I let things hang long >

Re: mod_perl 2 apache::session and "or die"

2003-02-21 Thread Perrin Harkins
Chris Faust wrote: I think it is in the locking as if I let things hang long enough and then shut down Apache, I get a error of: Can't call method "disconnect" on an undefined value at /usr/lib/perl5/site_perl/5.6.1/Apache/Session/Lock/MySQL.pm line 89 during global destruction.

RE: mod_perl 2 apache::session and "or die"

2003-02-21 Thread Chris Faust
d value at /usr/lib/perl5/site_perl/5.6.1/Apache/Session/Lock/MySQL.pm line 89 during global destruction. Which is Apache::Session::Lock:MySQL I'm still no closer as to figuring out why though. -Chris >> -Original Message- >> From: Perrin Harkins [mailto:[EMAIL PROTECTED]] &

Re: mod_perl 2 apache::session and "or die"

2003-02-19 Thread Stas Bekman
not calling the right hooks when it traps a die() to trigger the DESTROY method in Apache::Session which releases all locks. You can find out exactly what's going on if you run it in the debugger (Apache::DB) or throw some debug logging into Apache::Session to find out where it gets stuck

Re: mod_perl 2 apache::session and "or die"

2003-02-19 Thread Perrin Harkins
when it traps a die() to trigger the DESTROY method in Apache::Session which releases all locks. You can find out exactly what's going on if you run it in the debugger (Apache::DB) or throw some debug logging into Apache::Session to find out where it gets stuck. This is the beauty of

mod_perl 2 apache::session and "or die"

2003-02-19 Thread Chris Faust
I'm having a problem since installing Apache::Session All works well except when there is any kind of problem in the script where the condition will die.. For example: $db->execute() or die... open yadda or die.. $db->prepare() or die... etc. When this happens everything to do with

Re: Apache::Session::File hangs

2003-01-19 Thread Perrin Harkins
Axel Huizinga wrote: The following code hangs after reloading and the try to tie again the previously created session! WHY? ... use vars qw( $id $sID $lockDir %session $sessionDir ); The session variable has to go out of scope for the lock to be released. I know i

Apache::Session::File hangs

2003-01-19 Thread Axel Huizinga
Hi! The following code hangs after reloading and the try to tie again the previously created session! WHY? package Loop; use strict; use Apache; use Apache::Session::File; use CGI qw(:cgi); use Devel::Symdump; use Data::Dumper; use vars qw( $id $sID $lockDir %session

Re: Apache::Session

2003-01-16 Thread Randy Kobes
On Thu, 16 Jan 2003, Carl Holm wrote: > Hello, > > I am looking for a PPM version of Apache::Session for Perl (v5.8.0 > built for MSWin32-x86-multi-thread) > and Apache/2.0.43. Any pointers would be greatly appreciated. > > Thanks, > > Carl Holm > [EMAIL PROTE

RE: Apache::Session

2003-01-16 Thread Wilson, Allen
::Session Hello, I am looking for a PPM version of Apache::Session for Perl (v5.8.0 built for MSWin32-x86-multi-thread) and Apache/2.0.43. Any pointers would be greatly appreciated. Thanks, Carl Holm

Apache::Session

2003-01-16 Thread Carl Holm
Hello, I am looking for a PPM version of Apache::Session for Perl (v5.8.0 built for MSWin32-x86-multi-thread) and Apache/2.0.43. Any pointers would be greatly appreciated. Thanks, Carl Holm [EMAIL PROTECTED]

Re: Anyone ever have Apache::Session::File files getting corrupted?

2003-01-09 Thread Larry Leszczynski
> I think most people don't use Apache::Session::File in production. It's > more of a testing thing. In your situation, you would probably get > great performance from MLDBM::Sync with SDBM_File. I'd suggest trying > that if you can't determine the cause of

Re: Anyone ever have Apache::Session::File files getting corrupted?

2003-01-09 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: Anyway, my question for now is whether anyone has seen corruption like this with Apache::Session::File in your typical multi-user mod_perl web app environment? I think most people don't use Apache::Session::File in production. It's more of a testing thing

Anyone ever have Apache::Session::File files getting corrupted?

2003-01-09 Thread FFabrizio
This is going to be a somewhat preliminary "feeler" post because we are not yet able to fully describe or recreate the bug we're seeing, but I'm hoping some of you have seen something similar. We use Apache::Session::File as the storage module for our Apache::Session sessions

Re: Apache::Session::MySQL

2002-12-28 Thread Richard
Great, thank you guys! I am trying to first fix my Apache::Session problem before I open a whole new bag of candy :o) Thank you very much for your input, I am grateful! Richard. - Original Message - From: "Perrin Harkins" <[EMAIL PROTECTED]> To: <[EMAIL PROT

Re: Apache::Session::MySQL

2002-12-28 Thread Perrin Harkins
> So by user nobody, you mean in the httpd.conf file in the tags the user and group? > > I have it set to user username and group username for each account, > since all of our boxes use SuExec. Okay, that may be an issue because SuExec does not work with mod_perl. Each apache daemon can only run

Re: Apache::Session::MySQL

2002-12-28 Thread George Valpak
At 01:25 PM 12/28/2002 -0600, Richard wrote: >So mod_perl is safe Ok. one other question. If I do upgrade to Mod_Perl, >can I still run regular Perl scripts, without using Mod_Perl, or do I have >to use one or the other, only. Richard, Yes,you can still run regular cgi, as with MP you have t

Re: Apache::Session::MySQL

2002-12-28 Thread Richard
So by user nobody, you mean in the httpd.conf file in the I just replied to the PerlMonks reply you did. Thank you. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 12:08 PM Subject: R

Re: Apache::Session::MySQL

2002-12-28 Thread perrin
should definitely take advantage of the speed increase. Depending on what you're doing, it can make a really huge difference in performance. I do recommend that you fix your current Apache::Session problem first, before thinking about converting to mod_perl. - Perrin

Re: Apache::Session::MySQL

2002-12-28 Thread Richard
your reply in a min. Thank you!) - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 11:49 AM Subject: Re: Apache::Session::MySQL > > Is this the correct list for help with Apache::Session

Re: Apache::Session::MySQL

2002-12-28 Thread perrin
> Is this the correct list for help with Apache::Session::MySQL? This is a good list for it if you are using mod_perl. If you're using CGI, try one of the CGI resources instead, or stick with perlmonks.org. I just replied to your post there a few minutes ago. - Perrin

Apache::Session::MySQL

2002-12-28 Thread Richard
Is this the correct list for help with Apache::Session::MySQL?   Thanks, Richard.  

Re: Apache::Session and user sessions

2002-12-09 Thread Perrin Harkins
Rafiq Ismail (ADMIN) wrote: I'm not sure how often a user will attempt to complete one form through multiple browsers. To be honest I'm not sure that he/she should. There are all kind of forms. An obvious example would be a search. Users often open up multiple windows when browsing a site and

Re: Apache::Session and user sessions

2002-12-09 Thread Rafiq Ismail (ADMIN)
On Mon, 9 Dec 2002, Perrin Harkins wrote: > md wrote: > > My question is with regards to whether I need or > > should put the submitted data into the session as the > > user navigates the forms (to create an account). The > > user will be taken through three forms to create an > > account. So for

Re: Apache::Session and user sessions

2002-12-09 Thread Perrin Harkins
md wrote: My question is with regards to whether I need or should put the submitted data into the session as the user navigates the forms (to create an account). The user will be taken through three forms to create an account. So for instance, form one will ask the user to create a username, passw

Re: Apache::Session and user sessions

2002-12-07 Thread md
ent. I was reading through the archives and came across this. Everyone was so helpful the last time I had a Apache::Session question (thread "what goes in a session?") so I'm back with another question. The last project I worked on really had no transient data, so the only thin

Re: New module : Apache::Session::Manager

2002-11-18 Thread Clinton Gormley
Hi Enrico After posting, I looked at Apache::AuthCookie for the first time - don't why I hadn't looked at it before - to find that I was, indeed, duplicating a lot of work that has been done before. Didn't I feel foolish! It looks like Perrin may have to write a "...why not to write your own

Re: New module : Apache::Session::Manager

2002-11-18 Thread Enrico Sorcinelli
On 16 Nov 2002 13:24:13 +0200 Clinton Gormley <[EMAIL PROTECTED]> wrote: > I've written a new module as a wrapper around Apache::Session which > provides short term (ie session) tracking (which is something that > Apache::SessionManager and Apache::SessionX provide), but t

New module : Apache::Session::Manager

2002-11-16 Thread Clinton Gormley
I've written a new module as a wrapper around Apache::Session which provides short term (ie session) tracking (which is something that Apache::SessionManager and Apache::SessionX provide), but this adds long term user tracking, and methods to aid login, logout etc. It is meant to be subcl

[PATCH] Apache::Session

2002-10-25 Thread Enrico Sorcinelli
Hi Jeffrey, I've found a little bug in clean method of Apache::Session::Lock::File when it checks lockfiles last access time. In effects the result of the expression (file ./Session/Lock/File.pm, line 136) (stat($dir.'/'.$file))[8] - $now is always negative and lock di

Apache::Session - suggestion for man page

2002-10-16 Thread Rodney Hampton
1)I am using Apache::Session::File to maintain state information (just a user_id and a few small items). 2)The man page for Apache::Session indicates that the following regexp should be used to find the session cookie. $cookie =~ s/SESSION_ID=(\w*)/$1/; 3)This $cookie value is then used in a

Re: Apache::Session and user sessions

2002-09-23 Thread Todd W
ithout >>the id column being the primary key. > >It won't. All of the Apache::Session data is in a blob in the a_session >column. It has no access to the other columns. Thats what I was looking for. I ran through the code with ptkdb but since I wasnt using it ri

Re: Apache::Session and user sessions

2002-09-22 Thread Perrin Harkins
Todd W wrote: > Im looking at Apache::Session and trying to figure out what it does. It provides shared storage of a hash of data, and gives you a unique ID that you can tie to a user. > From what I > can tell, Apache::Session will only give generic sessions, of which I know > n

Apache::Session and user sessions

2002-09-20 Thread Todd W
Im looking at Apache::Session and trying to figure out what it does. What I want to do is tie sessions to a particular record in a database table. From what I can tell, Apache::Session will only give generic sessions, of which I know nothing about the user untill they give me information

HTML::Mason + Apache::Session problem

2002-09-11 Thread Ufuk Yuzereroglu
Hi I am running a RedHat 7.3 server with kernel 2.4.18, Apache 1.3.26, mod_perl 1.26-5 and Apache::Session and HTML:Mason-1.05 modules. When I try to start apache i get the error message Starting httpd: Subroutine status_mason redefined at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache

Mason 1.05 + Apache::Session problem!

2002-09-09 Thread Ufuk Yuzereroglu
HiI am running a RedHat 7.3 server with kernel 2.4.18, Apache 1.3-26,  mod_perl 1.26-5 and Apache::Session 1.53 and HTML::Mason-1.05 modules. When I try to start apache i get the error message:Starting httpd: Subroutine status_mason redefined at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux

RE: [OT] Apache::Session and Win32

2002-08-27 Thread Alessandro Forghieri
Greetings. [...] > > > Rob Bloodgood wrote: > > >I tried Apache::Session::File, but after MUCH hair-pulling > it seems that the > >Lock mechanism is COMPLETELY hosed (things are either never > locked or never > >unlocked, or something...) > >

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

2002-08-21 Thread Perrin Harkins
Peter J. Schoenster wrote: > If I'm using Apache::DBI so I have a persistent connection to MySQL, > would it not be faster to simply use a table in MySQL? Probably not, if the MySQL server is on a separate machine. If it's on the same machine, it would be close. Remember, MySQL has more work

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

2002-08-21 Thread Perrin Harkins
Ask Bjoern Hansen wrote: > The performance? I don't remember the exact figure, but it was at > least several times faster than the BerkeleyDB system. And *much* > simpler. In my benchmarks, recent versions of BerkeleyDB, used with the BerkeleyDB module and allowed to manage their own locking,

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

2002-08-21 Thread Jesse Erlbaum
Hey James -- > >One way to think about it is this: MySQL stores its data in > files. There > >are many layers of code between DBI and those files, each of which add > >processing time. Going directly to files is far less code, and > less code is > >most often faster code. > > MySQL also stores

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

2002-08-21 Thread James G Smith
"Jesse Erlbaum" <[EMAIL PROTECTED]> wrote: >Hi Peter -- > >> > The morale of the story: Flat files rock! ;-) >> >> If I'm using Apache::DBI so I have a persistent connection to MySQL, >> would it not be faster to simply use a table in MySQL? > > >Unlikely. Even with cached database connections

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

2002-08-21 Thread Jesse Erlbaum
Hi Peter -- > > The morale of the story: Flat files rock! ;-) > > If I'm using Apache::DBI so I have a persistent connection to MySQL, > would it not be faster to simply use a table in MySQL? Unlikely. Even with cached database connections you are probably not going to beat the performance o

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

2002-08-21 Thread Peter J. Schoenster
On 21 Aug 2002 at 2:09, Ask Bjoern Hansen wrote: > Now using good old Fcntl to control access to simple "flat files". > (Data serialized with pack("N*", ...); I don't think anything beats > "pack" and "unpack" for serializing data). > > The expiration went into the data and purging the cache wa

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

2002-08-21 Thread Ask Bjoern Hansen
On Tue, 20 Aug 2002 [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 gu

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

2002-08-20 Thread Ian Struble
Not in the MS house that I am living in right now :^( On Tue, 20 Aug 2002, Perrin Harkins wrote: > 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.

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

2002-08-20 Thread Perrin Harkins
Jie Gao wrote: > There are cases in which it is desirable to expire an entry which > hasn't been used for a certain period of time; authenticated sessions > data, for example. Okay, so you're looking for a session module rather than a cache. Apache::Session doesn't ha

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

2002-08-20 Thread Jie Gao
On Tue, 20 Aug 2002, Perrin Harkins wrote: > Jie Gao wrote: > > I wish some of these modules would be able to "touch" cached data so that > > it would expire cache entries on "last-accessed" rather than on the time > > the entries were created. > > Why? People used to do that with cached beca

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

2002-08-20 Thread Perrin Harkins
Jie Gao wrote: > I wish some of these modules would be able to "touch" cached data so that > it would expire cache entries on "last-accessed" rather than on the time > the entries were created. Why? People used to do that with cached because they had limited space and wanted to purge the cach

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

2002-08-20 Thread Jie Gao
On Tue, 20 Aug 2002, Perrin Harkins wrote: > Date: Tue, 20 Aug 2002 13:12:29 -0400 > From: Perrin Harkins <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Cc: Dave Rolsky <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: Apache::Session - What goes in session?

  1   2   3   4   5   6   >