This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » How to disable session in the framework?
How to disable session in the framework? [message #103046] Sun, 25 July 2010 05:52 Go to next message
ruanchao  is currently offline ruanchao
Messages: 11
Registered: August 2009
Location: China
Junior Member
I don't want to use sfSessionStorage.class.php or sfPDOSessionStorage.class.php, and attempt to disable session in symfony.

How can I customize the way symfony stores my persistent data, such as uid, sess_id, lastactivity and so on. I wan to stores them into a memory table with different fields, not only one filed of sess_data with sfPDOSessionStorage class.

However, I like to use $sf_user->getAttribute() in my templates and $this->getUser()->setAttribute() in my actions.


Do I describe my thought clear?
Re: How to disable session in the framework? [message #103047 is a reply to message #103046 ] Sun, 25 July 2010 05:58 Go to previous messageGo to next message
ruanchao  is currently offline ruanchao
Messages: 11
Registered: August 2009
Location: China
Junior Member
there is a useful topic which is similar to mine, below is the link:
http://forum.symfony-project.org/index.php/m/102905/


I read it repeat, it isn't my solution.


Expect better answers for my question, thanks a lot.

[Updated on: Sun, 25 July 2010 05:58]

Re: How to disable session in the framework? [message #103066 is a reply to message #103046 ] Mon, 26 July 2010 04:15 Go to previous message
ruanchao  is currently offline ruanchao
Messages: 11
Registered: August 2009
Location: China
Junior Member
maybe I need to solve it by myself. Shocked

I read a lot code of related class, such as
sfStorage,
sfSessionStorage,
sfDatabaseSessionStorage,
sfPDOSessionStorage,
sfUser
and sfBasicSecurityUser.

Maybe I need to write a class to extends sfSessionStorage, override all of its functions. Read, write the persistent data to a memory table, not session, whether files or myisam table.

If we don't use session_start, we can disable session in sf.
This is only my thought, and don't implement it now.

[Updated on: Mon, 26 July 2010 04:16]

Previous Topic:Doctrine_query problem
Next Topic:Problem with doctrine:insert-sql/doctrine:build-model
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software