Wiki

Articles tagged with "cookie", sorted by commentsX
Displaying 1-3 of 3 result(s).

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created about a year ago by c@cbaTutorials9 comments – viewed 14,593 times – ( +9 )
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Single sign on across multiple subdomains

Created 2 years ago by ianarĂ©How-tos6 comments – viewed 15,597 times – ( +22 )
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

Cookie management in Yii

Created 2 years ago by TrejderHow-tos4 comments – viewed 42,844 times – ( +39 / -1 )
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.