Sessions and browser's tabs May you have noticed when you open your website in two or more tabs in Firefox, Opera, IE 7.0 or use 'Control+N' in IE 6.0 to open a new window, it is using the same cookie or is passing the same session id, so the another tab is just a copy of the previous tab. What you do in one will affect the another and vice-versa. Even if you open Firefox again, it will use the sa
今回は、はてなダイアリーのURLのようにドメイン名に続いてユーザー固有のIDで始まるURL(自分のでいうとhttp://d.hatena.ne.jp/ngtn/)をCakePHPでどのように実現するかを考えてみました。 まず仮に app/controllers/diaries_controller.phpファイルに定義された、DiariesControllerクラスのdisplayメソッドがユーザー固有のページを表示するものだと仮定します。 このメソッドは引数$userNameをとり、それがユーザーを識別するはてなIDのようなものだとします。 以降は$userNameの値を仮に'ngtn'として話をします。 <?php class DiariesController extends AppController { function display($userName){ //指定された$u
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く