[Catalyst] How to get the stored session variables through a template

Vidya Sagar vsagarkola at gmail.com
Wed Feb 15 20:25:52 CET 2006


yes you are right  Matt S Trout

I have successfully stored all the values in a table.but  in table
session_id field contains  session:

why this is happening.Can any one suggest me.

 Here is my table data


select * from session;
+--------------------------------------------------+---------+------------+---------------------+--------+------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| session_id                                       | user_id | first_name |
timestamp           | store  | expires    |
storage
|
+--------------------------------------------------+---------+------------+---------------------+--------+------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| session:20d14671eb21267b444277d1f8946716b901c8d2 |    NULL | NULL       |
2006-02-16 00:46:23 | Jansan | 1140034583 |
BAYEMTIzNAQEBAgDBAAAAAoNMTkyLjE2OC4wLjEwNAkAAABfX2FkZHJlc3MKCUZ1cm5pdHVyZQUA
AABzdG9yZQacb/NDCQAAAF9fY3JlYXRlZAYHfvNDCQAAAF9fdXBkYXRlZA==
 |
+--------------------------------------------------+---------+------------+---------------------+--------+------------+--------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)



mysql> desc session;
+------------+--------------+------+-----+-------------------+-------+
| Field      | Type         | Null | Key | Default           | Extra |
+------------+--------------+------+-----+-------------------+-------+
| session_id | varchar(72)  |      | PRI |                   |       |
| user_id    | int(10)      | YES  |     | NULL              |       |
| first_name | varchar(100) | YES  |     | NULL              |       |
| timestamp  | timestamp    | YES  |     | CURRENT_TIMESTAMP |       |
| store      | varchar(20)  | YES  |     | Jansan            |       |
| expires    | int(10)      | YES  |     | NULL              |       |
| storage    | text         | YES  |     | NULL              |       |
+------------+--------------+------+-----+-------------------+-------+
7 rows in set (0.03 sec)





On 2/15/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> On Wed, Feb 15, 2006 at 04:02:23AM +0530, Vidya Sagar wrote:
> > Hello,
> >
> >  I have successfully stored all the values in a table....can i retreive
> > those stored sessions through Template....Kindly help me....bye
>
> While I think Chisel just gave you what you need, could you please ask in
> a little more detail next time? Best of all, if you're asking how to do
> something in Template Toolkit show a snippet of perl code you could put
> in a Controller that would do what you needed, and then ask how to do that
> in TT - it'll be much easier for people to work out what you need.
>
> For a few more hints on getting the best answers, please read
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> --
>      Matt S Trout       Offering custom development, consultancy and
> support
>   Technical Director    contracts for Catalyst, DBIx::Class and BAST.
> Contact
> Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more
> information
>
> + Help us build a better perl ORM:
> http://dbix-class.shadowcatsystems.co.uk/ +
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060216/df66c764/attachment.htm


More information about the Catalyst mailing list