Re: Sessions get mixed up ?

2004-11-17 Thread Ed Grimm
looks like they always logged in almost at > the same time (within 30 min from each other). Does that say anything to > you ? Given that you think 30 minutes is "close", that tells me that you're not having a collision on the original pseudo random number - for that to hit, you&#x

FW: Sessions get mixed up ?

2004-11-16 Thread Gerald Richter
> > > > > Create a new similar module with your desired alogrithem > > and specify it as > > > Generatior in the Embperl config > > > > > > > Hi! > > > > How would you change the Embperl config accordingly. > > > > > EMBPERL_SESSION_CLASSES "MySQL Semaphore Storable myMD5" > > > See al

Re: Sessions get mixed up ?

2004-11-16 Thread Stefan Cars
Ed Grimm wrote: On Mon, 15 Nov 2004, Pierre Etchemaite wrote: Le lun 15 nov 2004 18:24:06 CET, Ed Grimm <[EMAIL PROTECTED]> a écrit : Apache::Session generates the id by doing a md5 hash on a random number (time () . {} . Rand() . $$) , maybe there are situation where it generates the same id (als

Re: Sessions get mixed up ?

2004-11-16 Thread Stefan Cars
Gerald Richter wrote: How hard would it be to change the code to use a SHA or SSHA hash instead? (Admittedly, I'm picking a more cryptographically secure hash at psuedo-random; there may be one that's more appropriate.) Note that I realize they take longer to generate, but that time only happ

RE: Sessions get mixed up ?

2004-11-15 Thread Gerald Richter
> > How hard would it be to change the code to use a SHA or SSHA > hash instead? (Admittedly, I'm picking a more > cryptographically secure hash at psuedo-random; there may be > one that's more appropriate.) Note that I realize they take > longer to generate, but that time only happens at lo

Re: Sessions get mixed up ?

2004-11-15 Thread Ed Grimm
On Mon, 15 Nov 2004, Pierre Etchemaite wrote: > Le lun 15 nov 2004 18:24:06 CET, Ed Grimm <[EMAIL PROTECTED]> > a écrit : > >>> Apache::Session generates the id by doing a md5 hash on a random >>> number (time () . {} . Rand() . $$) , maybe there are situation where >>> it generates the same id (al

Re: Sessions get mixed up ?

2004-11-15 Thread Pierre Etchemaite
Le lun 15 nov 2004 18:24:06 CET, Ed Grimm <[EMAIL PROTECTED]> a écrit : > > Apache::Session generates the id by doing a md5 hash on a random > > number (time () . {} . Rand() . $$) , maybe there are situation where > > it generates the same id (also this should normaly not happen). > > MD5 hash c

RE: Sessions get mixed up ?

2004-11-15 Thread Ed Grimm
On Mon, 15 Nov 2004, Gerald Richter wrote: > Hi, > >> The problem is that this happens maybe once or twice a month (we have >> about 10-15 thousands login per day). So it's really hard to >> reproduce, and as far as I understand wouldn't the closure problem >> create this problem more often ?) > >

RE: Sessions get mixed up ?

2004-11-15 Thread Gerald Richter
, I can understand why the sub's would give wrong > >>results. Why the sessions would get mixed up I do not understand... > >> > > > > > > That might be the case when you keep data of a previous session in a > > closure. > > > > The other

Re: Sessions get mixed up ?

2004-11-15 Thread Stefan Cars
ote: After reading alot, I can understand why the sub's would give wrong results. Why the sessions would get mixed up I do not understand... That might be the case when you keep data of a previous session in a closure. The other possibility would be that Apache::Session generates duplicate ids

RE: Sessions get mixed up ?

2004-11-13 Thread Gerald Richter
> > After reading alot, I can understand why the sub's would give > wrong results. Why the sessions would get mixed up I do not > understand... > That might be the case when you keep data of a previous session in a closure. The other possibility would be that Apach

Re: Sessions get mixed up ?

2004-11-11 Thread Andre Landwehr
On Thu, Nov 11, 2004 at 11:36:50PM +0100, Stefan Cars wrote: > > Andre Landwehr wrote: > >Here is a thread from the time I had the problem, including > >Geralds answer. > >http://www.gossamer-threads.com/lists/modperl/embperl/11175#11175 > > > >The link Gerald posted is no longer valid, but I think

Re: Sessions get mixed up ?

2004-11-11 Thread Stefan Cars
Hi! After reading alot, I can understand why the sub's would give wrong results. Why the sessions would get mixed up I do not understand... /S Andre Landwehr wrote: On Wed, Nov 10, 2004 at 10:25:24PM +0100, Stefan Cars wrote: Correct, it seems that they are doing "do 'inc.pl&#

Re: Sessions get mixed up ?

2004-11-11 Thread Stefan Cars
Hi! Does this means that for example $udat{foo} can't be used inside a sub that is created with sub { } and not [$ sub $] and included with the 'do' syntax ? Kind Regards, Stefan Cars Andre Landwehr wrote: On Wed, Nov 10, 2004 at 10:25:24PM +0100, Stefan Cars wrote: Correct, it seems that they a

Re: Sessions get mixed up ?

2004-11-11 Thread Andre Landwehr
On Wed, Nov 10, 2004 at 10:25:24PM +0100, Stefan Cars wrote: > Correct, it seems that they are doing "do 'inc.pl'" alot, is there > around it or do we really need to change it to be [$ sub $] instead ? Or > can we fix our subs to not close ?? Do you have any URL's to this ? Here is a thread fro

Re: Sessions get mixed up ?

2004-11-10 Thread Andre Landwehr
anged in the middle of sessions and that it got another > session from another user currently also beeing logged in. Do you know > if this might be possible ? Typically this behaviour means you have an (unwanted) closure somewhere in your page. I experienced that effect many, many times. E

Sessions get mixed up ?

2004-11-09 Thread Stefan Cars
Hi! We get reports about that people sometimes in the middle of a registration get other peoples information. The only way I can see this happen (after days of investigation) is that the $udat with the member_id has changed in the middle of sessions and that it got another session from another

RE: cookie-less sessions..

2004-10-21 Thread Gerald Richter
Hi, > I have tried > setting EMBPERL_SESSION_MODE 0x21 but this just doesn't do > it, for some reason it seems to generate a new session_id > everytime I visit the page, Yes, when %sdat is used it generate a new session by design, because %sdat keeps history. To pass the session id as a paramt

RE: cookie-less sessions..

2004-10-21 Thread Neal Gamradt
Hello Stefan, The way I used to handle sessions was by creating a huge random number that I would pass as a hidden field or in the query string. I would try to make a mixture of characters and numbers so that it would be very difficult for someone walking by to try to write down if they saw it

cookie-less sessions..

2004-10-20 Thread Stefan Cars
Hi! I have some trouble which I asked the list awhile ago with sessions without cookies. The trouble is that sessions works perfect when people use cookies but for people that do turn off cookies everything is not working so great. I have tried setting EMBPERL_SESSION_MODE 0x21 but this just

RE: Using Sessions with the XMLHTTPRequest object

2004-06-15 Thread Smith, Matthew
Never mind. I wasn't changing the top level of the session hash. I added a timestamp and that did it. -Matthew -Original Message- From: Smith, Matthew Sent: Tuesday, June 15, 2004 3:46 PM To: [EMAIL PROTECTED] Subject: Using Sessions with the XMLHTTPRequest object I hav

Using Sessions with the XMLHTTPRequest object

2004-06-15 Thread Smith, Matthew
I having a problem using a session object in an epl file that is requested via the Javascript XMLHTTPRequest object (see http://developer.apple.com/internet/webcontent/xmlhttpreq.html for details on that). For whatever I can't access the correct session cookie, so I pass the session id of the s

Problems with multiple sessions in Netscape Navigator

2004-05-28 Thread Doug Rayner
We would like to let a single desktop user to have multiple, concurrent, independent sessions to our application. If the browser of choice is Internet Explorer (V6.x at least), this seems possible. While the session cookies all have the same name, the browser seems to keep the separate across

Re: only _session_id appears in sessions table

2004-05-14 Thread Jeremy Brooks
> > I've read the docs for sessions, embperl, README.v2, and spent days > looking through old posts. Maybe I'm missing something obvious... > I think I'm having problems with session manipulation using MySQL and > %udat/SessionX. I'm using a simple test epl file: >

only _session_id appears in sessions table

2004-05-14 Thread Jeremy Brooks
embperl wizards, I've read the docs for sessions, embperl, README.v2, and spent days looking through old posts. Maybe I'm missing something obvious... I think I'm having problems with session manipulation using MySQL and %udat/SessionX. I'm using a simple test epl f

Re: Sessions without cookies and EmbperlBlocks

2004-02-26 Thread Gerald Richter
> > I'm using Apache::SessionX as session manager for Embperl and running > alot of pages in EmbperlBlocks syntax. If people don't have cookies I > would like the sessionid to be set in the URL somehow (preferebly not > using cgi params). Is there any people that have any input on this ? > Embperl

Sessions without cookies and EmbperlBlocks

2004-02-25 Thread Stefan Cars
Hi! I'm using Apache::SessionX as session manager for Embperl and running alot of pages in EmbperlBlocks syntax. If people don't have cookies I would like the sessionid to be set in the URL somehow (preferebly not using cgi params). Is there any people that have any input on this ? /S --

Re: Cookie and Cookieless sessions

2003-12-27 Thread Gerald Richter
ame of the parameters defualts to EMBPERL_UID and can e set with EMBPERL_COOKIE_NAME Gerald > / Stefan > > -Original Message- > From: Gerald Richter [mailto:[EMAIL PROTECTED] > Sent: den 19 december 2003 05:52 > To: Stefan Cars > Cc: [EMAIL PROTECTED] > Subject:

RE: Cookie and Cookieless sessions

2003-12-19 Thread Stefan Cars
: Cookie and Cookieless sessions Stefan Cars wrote: > What is the status of this, Gerald ? Is that implemented yet ?? > > smodeUDatUrl = 4 > > The session id for the user session will passed as a part of the > URL. NOT YET IMPLEMENTED!! > No it's not implemented, but what y

Re: Cookie and Cookieless sessions

2003-12-18 Thread Gerald Richter
am (smodeUDatUrl would do something like //path/data.epl) Gerald > > Kind Regards, > Stefan Cars > > -Original Message- > From: Gerald Richter [mailto:[EMAIL PROTECTED] > Sent: den 2 december 2003 16:20 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Coo

RE: Cookie and Cookieless sessions

2003-12-13 Thread Stefan Cars
december 2003 16:20 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Cookie and Cookieless sessions Hi, > > Basically what I want to do is to have standard cookied sessions, > however if user doesn't support cookies then it falls back to > cookieless sessions. > > Can I

Re: problem with sessions

2003-12-05 Thread Gerald Richter
Session will create a new one with the correct owner Gerald > regards > Patrick > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. Dezember > 2003 13:01 > An: [EMAIL PROTECTED] > Betreff: problem with sessions

AW: problem with sessions

2003-12-05 Thread Patrick.Gebhardt
: problem with sessions hello guys, my configuration: Apache/1.3.26 (Unix) mod_perl/1.29 HTML::Embperl 1.3.6 Apache::Session 1.54 Apache::SessionX2.00b5 i'm using File Store and Semaphore Locking. < httpd.conf ---> ### log minimum + session output

problem with sessions

2003-12-05 Thread Patrick.Gebhardt
during global destruction. [Fri Dec 5 11:47:54 2003] [warn] [5044]ERR: 32: Warning in Perl code: (in cleanup) Can't call method "acquire_write_lock" on an undefined value at /usr/local/lib/perl5/site_perl/5.6.1/Apache/Session.pm line 569 durin

Re: Cookie and Cookieless sessions

2003-12-02 Thread Gerald Richter
Hi, > > Basically what I want to do is to have standard cookied sessions, > however if user doesn't support cookies then it falls back to > cookieless sessions. > > Can I > a) Have both cookie and cookieless sessions running at the same time > - if so how do I co

Cookie and Cookieless sessions

2003-11-30 Thread Pete Moran
Hi all, Basically what I want to do is to have standard cookied sessions, however if user doesn't support cookies then it falls back to cookieless sessions. Can I a) Have both cookie and cookieless sessions running at the same time - if so how do I configure this. b) Optionally pas

Re: Input Escaping (was:Shared sessions)

2003-11-28 Thread Gerald Richter
Hi, > > I wonder if I could ask you a couple of other questions? Of course you can ask questions, but the right place to do this is on the embperl mailing list. > We are > testing with the lastest stable release (1.3.6): > > 1) I had trouble opening/reading a file in a [- -] block in a > templa

Re: Input Escaping (was:Shared sessions)

2003-11-28 Thread Gerald Richter
Hi, > > I wonder if I could ask you a couple of other questions? Of course you can ask questions, but the right place to do this is on the embperl mailing list. > We are > testing with the lastest stable release (1.3.6): > > 1) I had trouble opening/reading a file in a [- -] block in a > templa

Re: Shared sessions

2003-11-25 Thread Gerald Richter
> > I have an authenticated session for a browser window that is > navigating the site built with Embperl::Object. I would like to use > a popup browser window for a helper "applet". I would like to have > the popup window safely share the session with the parent window. > Not sure how to do that

Shared sessions

2003-11-25 Thread Doug Rayner
I'm looking for some advice on how to do the following: I have an authenticated session for a browser window that is navigating the site built with Embperl::Object. I would like to use a popup browser window for a helper "applet". I would like to have the popup window safely share the session wi

RE: Locks on sessions database

2003-11-16 Thread Vijaya Dasari
Gerald Richter [mailto:[EMAIL PROTECTED] >Sent: Saturday, November 15, 2003 2:59 PM >To: Vijaya Dasari; [EMAIL PROTECTED] >Subject: Re: Locks on sessions database > >Vijaya Dasari wrote: >> Hi, >> >> We have problem with locking of rows in the session database

Re: Locks on sessions database

2003-11-15 Thread Gerald Richter
l 1.99_09 > > I tried using MySQL as Store, but still the same problem. > >> 40 | sessions | localhost | sessions | Query | 313 | User lock | > SELECT GET_LOCK('Apache-Session-30fac6623276e16798300d56c8de3989', > 3600) >> >> 41 | sessions | localhost | s

Locks on sessions database

2003-11-14 Thread Vijaya Dasari
Hi, We have problem with locking of rows in the session database. We are using postgres as the Store. Configuration of the system is Apache 2.0.47 + Embperl 2.0b9 + mod_perl 1.99_09 I tried using MySQL as Store, but still the same problem. | 40 | sessions | localhost | sessions | Query

Re: Using %udat between multiple sessions

2003-01-20 Thread Kee Hinckley
Posting here, since the original reply failed: At 7:41 AM -0800 1/20/03, [EMAIL PROTECTED] wrote: At 11:09 PM -0800 1/19/03, Hoenie Luk wrote: Thanks for your suggestion. However, since I'm using a web hosting service, I cannot alter the httpd.conf file. I tried to put "PerlSetEnv EMBPERL_COOKI

Re: Using %udat between multiple sessions

2003-01-18 Thread Kee Hinckley
tings, the state can also kept between multiple sessions." Can any one tell me how to change expire settings to do this? PerlSetEnv EMBPERL_COOKIE_EXPIRES date-goes-here in the apache config file. You should be able to use relative dates as well. I'm currently using +2M on on

Using %udat between multiple sessions

2003-01-18 Thread Hoenie Luk
tiple sessions." Can any one tell me how to change expire settings to do this? Thanks. ..Hoenie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sessions...

2002-11-21 Thread Gerald Richter
>tied(%session)->delete; >[17175]ERR: 24: Error in Perl code: Can't call method "delete" on an undefined >value at /var/www/html/contact/autentication.epl line 93. Looks like your session is not correctly setup. Use the Embperl %udat session handling and tied(%udat) -> delete should work Geral

Sessions...

2002-11-20 Thread Gerardo Schimpf
Hi everybody, I'm so new in sessions staff and I'm trying to delete a session with the following command: tied(%session)->delete; and I'm getting this: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your reques

Re: Sessions...

2002-11-20 Thread Luiz Fernando B. Ribeiro
Em Tue, 19 Nov 2002 15:38:12 + Gerardo Schimpf <[EMAIL PROTECTED]> escreveu: > Hello, I'm trying to use Sessions in embperl. I'm trying to see what > is in the %session hash, more spesific i'm triying to print out the > session_id ($session[_session_id]). > My

Sessions...

2002-11-19 Thread Gerardo Schimpf
Hello, I'm trying to use Sessions in embperl. I'm trying to see what is in the %session hash, more spesific i'm triying to print out the session_id ($session[_session_id]). My question is, how can I print out the session value? Thanks in advance My structure in the Mysql dat

Re: problems with sessions and upgrading

2002-10-06 Thread Gerald Richter
> > 1) the sessions keys for the new sessions are twice as long as the > old ones. generally, this is a good thing, but i am concerned that > the old session data will not get read when the cookie is submitted. > will the old sessions get read and reused, read and new ones cre

Re: problems with sessions and upgrading

2002-10-02 Thread ___cliff rayman___
cart data, affiliate reference data and things of that nature. i have found the sessions to be simple, quick, convenient and a reliable way to maintain this transient data. the fact is, the data is in there, and i need to migrate it to the new sessions. i may redesign the system at a later time, but

Re: problems with sessions and upgrading

2002-10-02 Thread perrin
> 1) the sessions keys for the new sessions are twice as long as the old > ones. generally, this is a good thing, but i am concerned that the old > session data will not get read when the cookie is submitted. will the > old sessions get read and reused, read and new ones crea

Re: problems with sessions and upgrading

2002-10-02 Thread ___cliff rayman___
Gerald Richter wrote: > > OLD STUFF: redhat 5.2, 2.0.36 kernel, 1.3.6 apache, 1.21 mod_perl, > > perl 5.005_02, apache session 1.04 and a storable of 0.63, embperl > 1.2.b10, > > file system sessions and locking data. > > > > NEW STUFF: redhat 5.2, 2.0.36 ker

Re: problems with sessions and upgrading

2002-09-30 Thread Gerald Richter
> OLD STUFF: redhat 5.2, 2.0.36 kernel, 1.3.6 apache, 1.21 mod_perl, > perl 5.005_02, apache session 1.04 and a storable of 0.63, embperl 1.2.b10, > file system sessions and locking data. > > NEW STUFF: redhat 5.2, 2.0.36 kernel, 1.3.26 apache, 1.27 mod_perl, > perl 5.6.1, a

problems with sessions and upgrading

2002-09-30 Thread ___cliff rayman___
OLD STUFF: redhat 5.2, 2.0.36 kernel, 1.3.6 apache, 1.21 mod_perl, perl 5.005_02, apache session 1.04 and a storable of 0.63, embperl 1.2.b10, file system sessions and locking data. NEW STUFF: redhat 5.2, 2.0.36 kernel, 1.3.26 apache, 1.27 mod_perl, perl 5.6.1, apache session 1.54, apache

Re: cookie-less sessions

2002-09-26 Thread Gerald Richter
> > This didn't work, but > $r -> session_id(undef); > worked. > Yes, of course it a method > While the 'EMBPERL_UID=...' is not inserted any more, the '?' still is. > Setting it to undef should also avoid the '?'. Don't know why this happens. I have to look more deeply into that Gerald

Re: cookie-less sessions

2002-09-26 Thread Jochen Topf
On Thu, Sep 26, 2002 at 10:24:25AM +0200, Gerald Richter wrote: > > I am using cookie-less-sessions with Embperl-2.0b8. This works ok, but I > > always have sessions, even if I didn't use %udat. I am trying to have a > web > > site that doesn't use sessions until

Re: cookie-less sessions

2002-09-26 Thread Gerald Richter
> I am using cookie-less-sessions with Embperl-2.0b8. This works ok, but I > always have sessions, even if I didn't use %udat. I am trying to have a web > site that doesn't use sessions until you log in, then uses sessions and > if you logout it gets rid of the session aga

cookie-less sessions

2002-09-25 Thread Jochen Topf
I am using cookie-less-sessions with Embperl-2.0b8. This works ok, but I always have sessions, even if I didn't use %udat. I am trying to have a web site that doesn't use sessions until you log in, then uses sessions and if you logout it gets rid of the session again. This seems to work

Re: MD5, Sessions and 1.3.3

2002-08-30 Thread Kee Hinckley
At 9:52 AM -0400 8/30/02, Kee Hinckley wrote: >Turning on sessions I found that I had to go add a require MD5 >statement to Embperl.pm. Otherwise I got: Never mind, I just read the release notes for 1.3.4 -- Kee Hinckley - Somewhere.Com, LLC http://consulting.somewhere.com/ I'

MD5, Sessions and 1.3.3

2002-08-30 Thread Kee Hinckley
Turning on sessions I found that I had to go add a require MD5 statement to Embperl.pm. Otherwise I got: [Thu Aug 29 10:59:26 2002] [error] Can't locate object method "hexhash" via package "MD5" (perhaps you forgot to load "MD5"?) at /Library/Perl/darw

Re: new sessions start at random times

2002-07-01 Thread Gerald Richter
;ve tracked the session id's and can see that my last session file > still exists in my sessions directory. I can't see any pattern to this > behavior - it seems to occur after about 10 requests or so. > Did you also see that the session id is comming in again? Set dbgSession in E

Re: Sessions ? (Apache::SessionX and Embperl)

2002-04-14 Thread Gerald Richter
> > But when a broswer try a embperl page with %udat hash (for put cookies in > browser) always embperl create a record in a Berkeley DB file. > > I undestand that is default for Apache::SessionX module, but how can setup > Apache config file for support mysql, without change default in installati

Sessions ? (Apache::SessionX and Embperl)

2002-04-13 Thread mtoro
Hello, I have installed a new server with embperl 1.3.4 and apache SessionX. And I put this config in the httpd.conf server config file : PerlSetEnv EMBPERL_COOKIE_NAME TXID PerlSetEnv EMBPERL_COOKIE_PATH / PerlSetEnv EMBPERL_COOKIE_EXPIRES 'Friday, 31-Dec-2010 14:00:00 GMT' PerlSetEnv EMBPERL_

Re: More on Sessions not active in 2.0b7

2002-04-11 Thread Gerald Richter
> I made some more adjustments after this was sent and I can't seem to > reproduce the error. Based on your suggestion above on setting the > dbgSession debug param I did see the sessions were being > executed/created. My problem was that I was doing a "bad thing&q

Re: More on Sessions not active in 2.0b7

2002-04-10 Thread Gerald Richter
> I have been trying various configurations, and noticed I am getting a > Seg fault in the the log file so I ran httpd through gdb and got this: > Program received signal SIGSEGV, Segmentation fault. > 0x4040b5a6 in EMBPERL2_GetLineNo () from > /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Embper

Re: More on Sessions not active in 2.0b7

2002-04-10 Thread Aaron Johnson
I have been trying various configurations, and noticed I am getting a Seg fault in the the log file so I ran httpd through gdb and got this: Program received signal SIGSEGV, Segmentation fault. 0x4040b5a6 in EMBPERL2_GetLineNo () from /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Embperl/Embper

More on Sessions not active in 2.0b7

2002-04-10 Thread Aaron Johnson
In rereading my last post I realized that I didn't give much informaiton to go on. I am upgrading from HTML::Embperl 2.0b5 to 2.0b7 Embperl. My setup was working correctly with Apache::SessionX prior to the upgrade attempt. I have double checked the conf file and no SESSION values are set t

Re: Problem with embperl sessions

2002-03-20 Thread Alan J. Rothstein
"Gerald Richter" <[EMAIL PROTECTED]> writes: > > > > I have the following in my httpd.conf > > > >SetEnv EMBPERL_DEBUG 10477 > >SetEnv EMBPERL_VIRTLOG /embperl/log > > > >PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore" > >PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:

Re: Problem with embperl sessions

2002-03-20 Thread Gerald Richter
> > I have the following in my httpd.conf > >SetEnv EMBPERL_DEBUG 10477 >SetEnv EMBPERL_VIRTLOG /embperl/log > >PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore" >PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:webdb" # I've taken out the user and passwd >PerlModule HT

Problem with embperl sessions

2002-03-20 Thread Alan J. Rothstein
I'm setting up a new web server with Apache 1.3.22, Embperl 1.3.4 and MySQL 3.23.49. When I access a page that tries to set a session variable I get the following error back: [Wed Mar 20 05:25:53 2002] [error] [20764]ERR: 24: Error in Perl code: Undefined subroutine &Apache::SessionX::Generat

Re: Sessions: which is most resilient?

2002-01-06 Thread Ed Grimm
On Sun, 6 Jan 2002, Gerald Richter wrote: >> If you use "File" you may do fine when there are 1000 >> files in your sessions directory, but will begin to >> degrade speed as it increases. Perhaps there's a >> subdirectory, index simulating approach I

Re: Sessions: which is most resilient?

2002-01-06 Thread Gerald Richter
> > If you use "File" you may do fine when there are 1000 > files in your sessions directory, but will begin to > degrade speed as it increases. Perhaps there's a > subdirectory, index simulating approach I'm not aware > of. > Apache::Session doesn'

Re: New non-cookie sessions.

2002-01-06 Thread Gerald Richter
> Hello, I am using version 1.3.4. I use EmbperlObj as > well. > > RE: optAddUserSessionToLinks is 0x100 > RE: optAddStatusSessionToLinks > is 0x200 You can find the values in embperl.h It's not documentated, because I have started the implementation in 1.3.4, but decided to not fi

Sessions: which is most resilient?

2002-01-05 Thread Jarrod Stenberg
ose. If you use "File" you may do fine when there are 1000 files in your sessions directory, but will begin to degrade speed as it increases. Perhaps there's a subdirectory, index simulating approach I'm not aware of. If you use DB_FIle, does it load the whole file into

New non-cookie sessions.

2002-01-05 Thread Jarrod Stenberg
Hello, I am using version 1.3.4. I use EmbperlObj as well. RE: optAddUserSessionToLinks RE: optAddStatusSessionToLinks How do I assign these globally? I could not find the bitmask approach so I don't know where to go from there. Also, thank you, Gerald, for your excellent work. -Jarrod ___

Re: cgi and sessions

2001-12-19 Thread Gerald Richter
Hi! > > When using Apache::Session > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:test UserName=root > Password=" > > worked ok. > > When I use Apache::SessionX it uses only the values that I entered when > doing Makefile.PL. > > How to modify those default values? > EMBPERL_SESSION_ARGS

Re: cgi and sessions

2001-12-18 Thread Jaak
Hi! When using Apache::Session PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:test UserName=root Password=" worked ok. When I use Apache::SessionX it uses only the values that I entered when doing Makefile.PL. How to modify those default values? Thanks for your help. ---

Re: cgi and sessions

2001-12-18 Thread Gerald Richter
Hi! > > > Now I have reached to another problem: > I create session in CGI program > >... > > How can I call that same session out in EmbPerl mode ($udat{username})? > You need to set the cookie with the session id in your cgi script . Look at the function SetSessionCookie in Embperl.pm for an e

Re: cgi and sessions

2001-12-18 Thread Jaak
Hi! > Embperl uses Apache::SessionX for storage (HTML::Embperl::Session before > 1.3.4, but there is only a small difference). You can use this module in > your CGI scripts too, to access the session data. You need to pass the same > setup parameters to Apache::SessionX and the session id. Thank

Re: cgi and sessions

2001-12-17 Thread Gerald Richter
> > I have a CGI forum that uses cookies to authenticate user. > Now I wish to add some embperl pages that authenticate with %udat. > I wish to change the CGI forum authentication method to embperl %udat like > auth. method. > > How can I create, read, modify embperl session data from my CGI scrip

cgi and sessions

2001-12-16 Thread Jaak
Hi! I have a CGI forum that uses cookies to authenticate user. Now I wish to add some embperl pages that authenticate with %udat. I wish to change the CGI forum authentication method to embperl %udat like auth. method. How can I create, read, modify embperl session data from my CGI scripts? What

Re: Sessions

2001-11-20 Thread Gerald Richter
- - Original Message - From: "alan milligan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 10:02 AM Subject: Sessions > Hi All, > > I have asked similar questions to this before, but I am not getting the > d

Sessions

2001-11-19 Thread alan milligan
Hi All, I have asked similar questions to this before, but I am not getting the desired behaviour out of my Embperl (2.0b3) sessions. I have written my own PerlHandler for authorisation which uses Embperl, but regardless of using it, each time I load a page, a new session object gets written

Re: Sessions inconsistent

2001-11-18 Thread Gerald Richter
> > Are you saying that ALL of the EMBPERL_SESSION_[INSERT NAME HERE] > variables are global? > Yes EMBPERL_SESSION_CLASSES EMBPERL_SESSION_ARGS EMBPERL_SESSION_HANDLER_CLASS are global EMBPERL_COOKIE_* are _not_ global and can be set different in different contexts (By setting a different co

Re: Sessions inconsistent

2001-11-18 Thread David Lloyd
Gerald! > That's dangerous, because you can't have different values for these > configuration directives. They are global. (Yes that's something that should > be changed sometime, but it isn't yet). If you have different values the > session management get's initialized with the values from the

Re: Sessions inconsistent

2001-11-15 Thread Gerald Richter
> > > 1.) PerlModule HTML::Embperl > > > > > For 1., put the PerlSetEnv with the session vars, before the PerlModule > > statment in your httpd.conf > > I have finally managed to get session management working; I used to have > the EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS in my session

Re: Sessions inconsistent

2001-11-15 Thread steve . fawcett1
plest thing is to add just after > your push a > > $udat{dummy}++ ; > > Gerald > > > > > > Am still having a bit of a nightmare with my sessions. This is difficult > to explain but here I go with an attempt - sorry that it's a long one... > > > &

Re: Sessions inconsistent

2001-11-15 Thread David Lloyd
Gerald! > 1.) PerlModule HTML::Embperl > For 1., put the PerlSetEnv with the session vars, before the PerlModule > statment in your httpd.conf I have finally managed to get session management working; I used to have the EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS in my without using a

Re: Sessions inconsistent

2001-11-15 Thread Gerald Richter
a nightmare with my sessions. This is difficult to explain but here I go with an attempt - sorry that it's a long one... > > On one page I have three frames. > > In the top frame I am filling and array in %udat with data and then displaying a select box with the list of data

Re: Sessions inconsistent

2001-11-13 Thread Gerald Richter
Hi > > Sorry about the delay to your original message - I have been travelling for most of today no problem... >and am trying to narrow down the problem before wasting your time any further. > .. that's even better! > I get the following line in my messages file at startup: > httpd-perl: [122

Re: Sessions inconsistent

2001-11-12 Thread Gerald Richter
> > Stupid question, but how do you make sure it's set BEFORE embperl is > loaded? > You can load Embperl in three way (when using mod_perl) 1.) PerlModule HTML::Embperl 2.) in a startup file which is loaded via PerlRequire, you say use HTML::Embperl 3.) you don't load it explicitly, the mod_per

Re: Sessions inconsistent

2001-11-12 Thread David Lloyd
Stupid question, but how do you make sure it's set BEFORE embperl is loaded? DSL -- If we could extract all the evil from each of us, Think of the world that we could create! A world without anger, or violence or strife... (From the Musical, Jekyll and Hyde)

Re: Sessions inconsistent

2001-11-12 Thread Gerald Richter
Hi > > Sometimes I can retrieve data out of %udat, sometimes I can't. I tried adding domain and path environment variables to no avail. > > PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore" > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:webdata UserName=mgmtsesh69" > PerlSetEnv EMBPERL

Sessions inconsistent

2001-11-12 Thread steve . fawcett1
Hi Sometimes I can retrieve data out of %udat, sometimes I can't. I tried adding domain and path environment variables to no avail. PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore" PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:webdata UserName=mgmtsesh69" PerlSetEnv EMBPERL_SESSION_

Re: Trying to get sessions to work with windows 2000.

2001-10-31 Thread Randy Kobes
On Wed, 31 Oct 2001, Hans de Groot wrote: > but before (first start ppm and then use set repository etc) I > could search for session and then said install apache-session it > failed with that message.. strange this works.. but I am happy :-) That's great that it works ... I think to set up

sessions are working now!

2001-10-31 Thread Hans de Groot
Hi, Sessions are working now. I used: apache_1.3.22-win32-x86.msi ActivePerl-5.6.1.629-MSWin32-x86-multi-thread.msi and installed several pacheges (ie embperl apache session dbi dbd etc...) via ppm and it is working now I can see my site and sessions are actually doing what they should do

Re: Trying to get sessions to work with windows 2000.

2001-10-31 Thread Hans de Groot
Hi, I tied what you said and gues what.. it worked!! do not ask me why coz tonight is the first time I use ppm.. I did this: ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Apache-Session.ppd and it's installed now. but before (first start ppm and then use set repository etc) I coul

Re: Trying to get sessions to work with windows 2000.

2001-10-31 Thread Randy Kobes
On Wed, 31 Oct 2001, Hans de Groot wrote: > Hi and thanks for the tip. > > I re installed active state perl and installed some packages (embperl 1.3.3) > now I wanted to install apache session 1.53 from the url you gave me and > I got this message: > > Packages available from http://theoryx5.uwin

  1   2   >