2010年06月11日 過去Blog
PHPでセッションを完全に破棄する <?php // セッション変数を全て解除する $_SESSION = array(); // セッションを切断するにはセッションクッキーも削除する。 // Note: セッション情報だけでなくセッションを破壊する。 if (isset($_COOKIE[session_name()])) { setcookie(session_name(), ”, time()-42000, ‘/’); } // 最終的に、セッションを破壊する session_destroy(); ?> 参考サイト:http://d.hatena.ne.jp/Kappuccino/20080726/1217049706

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

[PHP]Cannot use object of type stdClass as array

2011年03月24日 過去Blog
根本的な解決ではないかもしれませんが、「Cannot use object of type stdClass as array」エラーが出る場合は、配列の扱い方を以下のように変更する事で解決しました。 $row["catID"] ↓ $row->catID
「[PHP]Cannot use object of type stdClass as array」をはてなブックマークに追加

addressbook内のデータをtableViewに表示させる

2011年01月17日 過去Blog
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusab…
「addressbook内のデータをtableViewに表示させる」をはてなブックマークに追加

PHP 配列の要素数を取得する

2010年06月11日 過去Blog
$array_count = count($array);
「PHP 配列の要素数を取得する」をはてなブックマークに追加

PHP short_open_tag

2010年04月05日 過去Blog
php.iniの short_open_tag = On にすることで <?php の省略形が使えるようになる。 <?php echo "test"; ?> ↓↓↓↓↓↓↓↓ <? echo "test"; ?> best-wedding.getbestnews.com…
「PHP short_open_tag」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy