thx for answer!
one question more. thats my httpd.conf entry. I did not declared any
session handling (file, mysql, ...) in mason or apache (i think so :).
I only set masonallowglobals for %session to see it in all my components.
So how is %session handled within requests? Is it standard as file or
memory or what? The values of %session are known
overall my mason components. And storing simple strings etc. in it is
ok, but a dbi handle will crash (?).
regards chris
----------------------------
LoadModule perl_module modules/mod_perl.so
PerlModule HTML::Mason::ApacheHandler
<Location />
PerlSetVar MasonAllowGlobals %session
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Location>
----------------------------
Perrin Harkins wrote:
On Fri, 2005-12-23 at 09:03 +0100, [EMAIL PROTECTED] wrote:
So why is the session always on a persistent layer (in
file/database/etc) and not in memory of mason/perl like a normal hash?
You need to read about how apache works. The server runs multiple
processes with no sharing of data. You can use threads in apache 2, but
most people will still use a database for this so they can handle
clusters of servers, fail-over, etc.
And whats the connection of the real session (tags in url/cookie) with
this memory area?
Please read the Apache::Session or CGI::Session docs. The thing you put
in the URL or cookie is just an identifier. It has no actual session
data in it. This is pretty standard for other platforms (Java, ASP,
etc.) too.
- Perrin
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users