Skip to content

Instantly share code, notes, and snippets.

@wnoguchi
Last active December 18, 2015 12:09
Show Gist options
  • Save wnoguchi/5780833 to your computer and use it in GitHub Desktop.
Save wnoguchi/5780833 to your computer and use it in GitHub Desktop.
phpMyAdminの開発用セッションタイムアウト延長コード。1週間。
<?php
// Ubuntuでaptitudeでインストールした場合:
// 正しくは以下のファイルに記述することが重要。
// /var/lib/phpmyadmin/config.inc.php
// 下の2つのファイルは変更しても設定が反映されないので注意。
// /etc/phpmyadmin/config.inc.php
// /usr/share/phpmyadmin/setup/frames/config.inc.php
ini_set("session.gc_maxlifetime", 604800);
$cfg['LoginCookieValidity'] = 604800;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment