I think something is wrong. Please check:<br><br>I have two apps wc and qy:<br><br><b> WC:</b><br><br>debian:/tmp/wc# /etc/init.d/apache2 start<br>Starting web server: apache2.<br>debian:/tmp/wc# ls<br>session_data<br>debian:/tmp/wc# /etc/init.d/apache2 stop<br>
Stopping web server: apache2 ... waiting .<br>debian:/tmp/wc# ls<br>session_data<br><br><i><b>The session_data is there and user needn&#39;t login again.</b></i><br><br>use Catalyst qw/-Debug<br>                ConfigLoader<br>
                Static::Simple<br><br>                StackTrace<br>                Authentication<br><br>                Session<br>                Session::Store::FastMmap<br>                Session::State::Cookie/;<br>
<br>&lt;authentication&gt;<br>    default_realm dbic<br>    &lt;realms&gt;<br>        &lt;dbic&gt;<br>            &lt;credential&gt;<br>                # Note: this first definition would be the same as setting<br>                # __PACKAGE__-&gt;config-&gt;{authentication}-&gt;{realms}-&gt;{dbic}<br>
                #     -&gt;{credential} = &#39;Password&#39; in lib/MyApp.pm<br>                #<br>                # Specify that we are going to do password-based auth<br>                class Password<br>                # This is the name of the field in the users table with the<br>
                # password stored in it<br>                password_field password<br>                # Switch to more secure hashed passwords                <br>                password_type  hashed<br>                # Use the MD5 hashing algorithm<br>
                password_hash_type MD5<br>            &lt;/credential&gt;<br>            &lt;store&gt;<br>                # Use DBIC to retrieve username, password &amp; role information<br><b>               <i> class DBIx::Class</i></b><br>
                # This is the model object created by Catalyst::Model::DBIC<br>                # from your schema (you created &#39;MyApp::Schema::Result::User&#39;<br>                # but as the Catalyst startup debug messages show, it was<br>
                # loaded as &#39;MyApp::Model::DB::Users&#39;).<br>                # NOTE: Omit &#39;MyApp::Model&#39; here just as you would when using<br>                # &#39;$c-&gt;model(&quot;DB::Users)&#39;<br>                user_class WCDB::WcUser<br>
           &lt;/store&gt;<br>        &lt;/dbic&gt;<br>    &lt;/realms&gt;<br>&lt;/authentication&gt;<br><br><b> QY:</b><br><br>debian:/tmp/qy# /etc/init.d/apache2 start<br>
Starting web server: apache2.<br>
debian:/tmp/qy# ls<br>
session_data<br>
debian:/tmp/qy# /etc/init.d/apache2 stop<br>
Stopping web server: apache2 ... waiting .<br>
debian:/tmp/qy# ls<br>
debian:/tmp/qy#<br>
<i><br>
<b>The session_data is cleared out and user must login again.<br><br></b></i>use Catalyst qw/-Debug<br>
                ConfigLoader::MultiState<br>
                Static::Simple<br>
<br>
                StackTrace<br>
                Authentication<br>
<br>
                Session<br>
                Session::Store::FastMmap<br>
                Session::State::URI<br>
                Session::State::Cookie/;<br>
<br>$default_realm = &#39;default&#39;;<br>$realms = {<br>    &#39;default&#39; =&gt; {<br>        &#39;credential&#39; =&gt; {<br>          &#39;class&#39;               =&gt; &#39;Password&#39;,<br>          &#39;password_field&#39;      =&gt; &#39;password&#39;,<br>
          &#39;password_type&#39;       =&gt; &#39;hashed&#39;,<br>          &#39;password_hash_type&#39;  =&gt; &#39;MD5&#39;,<br>        },<br>        &#39;store&#39; =&gt; {<br><b>          &#39;class&#39;              =&gt; &#39;DBI&#39;,</b><br>
          &#39;user_table&#39;         =&gt; &#39;qy_user&#39;,<br>          &#39;user_key&#39;           =&gt; &#39;id&#39;,<br>          &#39;user_name&#39;          =&gt; &#39;username&#39;,<br>          &#39;user_password&#39;      =&gt; &#39;password&#39;,<br>
        },<br>    },<br>};<br><br>$use_session = 1;<br><br><br><div class="gmail_quote">On Sat, Apr 18, 2009 at 3:36 PM, Devin Austin <span dir="ltr">&lt;<a href="mailto:devin.austin@gmail.com">devin.austin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If your data needs to be more persistent save it in the database<br><br></blockquote></div><br>
<br>-- <br>Jack Malloy<br>