Jump to content

chemdream

New Members
  • Posts

    4
  • Joined

  • Last visited

chemdream's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Because I have a multi server setup, I was thinking about using cookies for all session data. Obviously the data will be encrypted. But do you guys have any best practices you would recommend? For example, right now, I look for a cookie call (app_name). if that exists I decrypt the data, unserialize it and see if I can the proper ID (and 1 other validation field). If they do, then I fill the local session with all the data I need and I make sure the cookie has the up-to-date data. Should I not use a cookie with (app-name)? If I just use session_name() and set the session/cookie name? Or will that delete the data in the cookie if it already exists? Any advice would be great! I'm really trying hard not to save session data in the DB to account for the multi-server setup. Thanks!
  2. I should also mention that I'm using YAF for MVC... Only for this one project do I need everything to go through one controller. But still need YAF to take care of the layout, views and other stuff. Thanks!
  3. Sorry, I'm not sure what you mean. heh. Do you think you could give an example or a link to an example? The YAF documents aren't complete so I'm feel like I'm flying a bit blind. heh.
  4. Freaks, My goal is trying to edit the code below so, no matter what, everything gets sent to the Index controller: so, for example: http://domain.tld/page would go to the Index Controller, and call the pageAction method. right now, that would get sent to the page controller... Yaf_Dispatcher::getInstance()->getRouter()->addRoute( "pages", new Yaf_Route_Regex( "#^/index/page/(\d+)#", array('controller' => "Index"), array(1 => "page") ) ); I'm horrible with regular expressions. I'm pretty sure I could just edit #^/index/page/(\d+)# (and remove the 2nd part of the array) and it will just work. Any help would be greatly appreciated! There is a bit of info here about it: http://php.net/manual/en/yaf-route-rewrite.construct.php THANK YOU!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.