Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Andrew Rodland
On Saturday 18 April 2009 01:28:30 am Malloy wrote: After restart apache, user must login again. I find $c-user_existsis not true. Why? Because you're using Session::Store::FastMmap and the session cache file didn't exist before your app started, so Cache::FastMmap deletes it on exit?

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Devin Austin
probably because the session is cleared out On Sat, Apr 18, 2009 at 12:28 AM, Malloy jackwor...@gmail.com wrote: After restart apache, user must login again. I find $c-user_existsis not true. Why? -- Jack Malloy ___ List:

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Malloy
Thanks. I think so, too. But why Cache::FastMmap deletes it? Where can set it? I just use all config default. use Catalyst qw/-Debug ConfigLoader::MultiState Static::Simple StackTrace Authentication Session

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Devin Austin
The point is, your sessions are going to be cleared out upon server restart. On Sat, Apr 18, 2009 at 1:10 AM, Malloy jackwor...@gmail.com wrote: Hi Andrew debian:/tmp/qy# ls session_data On Sat, Apr 18, 2009 at 2:52 PM, Andrew Rodland arodl...@comcast.netwrote: On Saturday 18 April

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Malloy
Yep. but how to fix this problem? On Sat, Apr 18, 2009 at 3:22 PM, Devin Austin devin.aus...@gmail.comwrote: The point is, your sessions are going to be cleared out upon server restart. -- Jack Malloy ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Devin Austin
If your data needs to be more persistent save it in the database On Sat, Apr 18, 2009 at 1:25 AM, Malloy jackwor...@gmail.com wrote: Yep. but how to fix this problem? On Sat, Apr 18, 2009 at 3:22 PM, Devin Austin devin.aus...@gmail.comwrote: The point is, your sessions are going to be

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Malloy
I find: debian:/tmp/qy# ls session_data debian:/tmp/qy# /etc/init.d/apache2 stop Stopping web server: apache2 ... waiting . debian:/tmp/qy# ls debian:/tmp/qy# The session file is cleared out when apache stop. How to fix this problem? On Sat, Apr 18, 2009 at 3:22 PM, Devin Austin

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Malloy
I think something is wrong. Please check: I have two apps wc and qy: * WC:* debian:/tmp/wc# /etc/init.d/apache2 start Starting web server: apache2. debian:/tmp/wc# ls session_data debian:/tmp/wc# /etc/init.d/apache2 stop Stopping web server: apache2 ... waiting . debian:/tmp/wc# ls session_data

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Simon Wilcox
On 18/4/09 09:00, Malloy wrote: I think something is wrong. Please check: Read the docs. http://search.cpan.org/~robm/Cache-FastMmap-1.28/FastMmap.pm If the share_file exists when the process starts it won't be deleted on exit. If it doesn't exist the default is to delete it when the process

Re: [Catalyst] about catalyst authentication

2009-04-18 Thread Malloy
Thanks all. It's ok now. -- Jack Malloy ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: