I'm trying to write a class to manage my cookies. (my app has a
few!!!). So during my attempt, i created mysession.class.php in /lib
and thats working good.

Here is how my class looks like

class mySessions
{
   public function __construct($user, $id)
   {
      $this->id = $id;
      $this->user = $user;
   }

   public function setCookieOn()
   {
      $this->user->setAttribute($this->id.'on', "1");
   }
}

Now, in my controllers i'm doing this:

$mysuppersession = new mySession($this->getUser(), "1");
$mysupersession->setCookieOn();

no parse errors, warnings or anything!, but my cookies dont get set!.

any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to