FAQ
Hi,
To store a value using session, I use this:
$c->session->{myitem) = ...

How could I clear/delete the session. When I try
$session->clear();
it gives me error. Could someone please show me how to kill this type of session.

thanks


---------------------------------

What are the most popular cars? Find out at Yahoo! Autos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060217/4c0d2321/attachment.htm

Search Discussions

  • John Beppu at Feb 18, 2006 at 9:35 am

    On 2/17/06, Will Smith wrote:
    How could I clear/delete the session. When I try
    $session->clear();
    it gives me error.

    $c->session_clear();
  • Yuval Kogman at Feb 19, 2006 at 8:50 pm

    On Sat, Feb 18, 2006 at 00:43:14 -0800, John Beppu wrote:
    On 2/17/06, Will Smith wrote:
    How could I clear/delete the session. When I try
    $session->clear();
    it gives me error.

    $c->session_clear();
    wtf?

    $c->delete_session

    --
    () Yuval Kogman <nothingmuch@woobling.org> 0xEBD27418 perl hacker &
    /\ kung foo master: /me tips over a cow: neeyah!!!!!!!!!!!!!!!!!!!!!!

    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060219/6ceefc36/attachment.pgp
  • John Beppu at Feb 20, 2006 at 4:24 am

    On 2/19/06, Yuval Kogman wrote:
    On Sat, Feb 18, 2006 at 00:43:14 -0800, John Beppu wrote:
    On 2/17/06, Will Smith wrote:
    How could I clear/delete the session. When I try
    $session->clear();
    it gives me error.

    $c->session_clear();
    wtf?

    $c->delete_session

    I have session_clear() in my own code, and it doesn't crash, but
    that's probably because I'm using session handling code that's been
    deprecated. I'm still using Catalyst::Plugin::Session::Flex and its
    man page tells me there's a session_clear() method.
  • Yuval Kogman at Feb 20, 2006 at 9:34 am

    On Sun, Feb 19, 2006 at 19:31:45 -0800, John Beppu wrote:
    On 2/19/06, Yuval Kogman wrote:
    On Sat, Feb 18, 2006 at 00:43:14 -0800, John Beppu wrote:
    On 2/17/06, Will Smith wrote:
    How could I clear/delete the session. When I try
    $session->clear();
    it gives me error.

    $c->session_clear();
    wtf?

    $c->delete_session

    I have session_clear() in my own code, and it doesn't crash, but
    that's probably because I'm using session handling code that's been
    deprecated. I'm still using Catalyst::Plugin::Session::Flex and its
    man page tells me there's a session_clear() method.
    Oh... I looked in Catalyst::Plugin::Session::FastMmap which everyone
    seems to be using and didn't find anything like that there so I
    thought it was custom code.

    I never met anyone who used Session::Flex before...

    Sorry

    --
    () Yuval Kogman <nothingmuch@woobling.org> 0xEBD27418 perl hacker &
    /\ kung foo master: /me has realultimatepower.net: neeyah!!!!!!!!!!!!

    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060220/d4a47ba0/attachment.pgp
  • Thomas Hartman at Feb 20, 2006 at 11:39 am
    Maybe when answering/discussing these types of questions, it should be
    standard operating procedure to include the lines in the App.pm (or
    wherever it is that this happens) that specifies which plugins gets
    used. This type of confusion seems to happen fairly often. And it
    would be great for people still getting their feet wet, for
    understanding where the $c ($context) object gets its methods from.
    This question - where $c (or some object returned by $c) got such and
    so method - is currently what I am finding most intimidating about
    following board discussions. Since catalyst is still taking shape,
    documentation is shaky, and group discussions to a great extent are
    taking the place of docu, I think this would really help.

    Thomas.


    2006/2/20, Yuval Kogman <nothingmuch@woobling.org>:
    On Sun, Feb 19, 2006 at 19:31:45 -0800, John Beppu wrote:
    On 2/19/06, Yuval Kogman wrote:
    On Sat, Feb 18, 2006 at 00:43:14 -0800, John Beppu wrote:
    On 2/17/06, Will Smith wrote:
    How could I clear/delete the session. When I try
    $session->clear();
    it gives me error.

    $c->session_clear();
    wtf?

    $c->delete_session

    I have session_clear() in my own code, and it doesn't crash, but
    that's probably because I'm using session handling code that's been
    deprecated. I'm still using Catalyst::Plugin::Session::Flex and its
    man page tells me there's a session_clear() method.
    Oh... I looked in Catalyst::Plugin::Session::FastMmap which everyone
    seems to be using and didn't find anything like that there so I
    thought it was custom code.

    I never met anyone who used Session::Flex before...

    Sorry

    --
    () Yuval Kogman <nothingmuch@woobling.org> 0xEBD27418 perl hacker &
    /\ kung foo master: /me has realultimatepower.net: neeyah!!!!!!!!!!!!



    _______________________________________________
    Catalyst mailing list
    Catalyst@lists.rawmode.org
    http://lists.rawmode.org/mailman/listinfo/catalyst


Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedFeb 17, '06 at 10:36p
activeFeb 20, '06 at 11:39a
posts6
users4
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2021 Grokbase