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B-"(B $B%m%0%$%s!!"*!!%;%C%7%g%s%U%!%$%k99?7(B($BCf$NCM$O$9$Y$F(BN)
$B-#(B $B%m%0%"%&%H(B($B%m%0%$%s%Z!<%8$XA+0\A0(B)$B!!"*!!%;%C%7%g%s%U%!%$%k:o=|(B
$B-$(B $B%m%0%$%s%Z!<%8$XA+0\!!"*!!%;%C%7%g%s%U%!%$%k$,L5$$$^$^!!!!!!"($3$3$,JQ!*(B
$B-%(B $B%m%0%$%s%Z!<%8$G!V(BF5$B!W!!"*!!%;%C%7%g%s%U%!%$%k @ 8@.!J:o=|A0$HF1L>!K(B

$B%m%0%$%s%Z!<%8$G$O @ hF,$G(Bsession_start(); $B!u(Bsession_register("hoge");
$B$,F~$C$F$$$k$N$G!"%;%C%7%g%s%U%!%$%k$O:n @ .$5$l$k$O$:$J$N$G$9$,(B
$B%m%0%$%s%Z!<%8$KLa$C$F$b!"$I$&$b$=$3$N(Bphp$B$NL?Na$,<B9T$5$l$F$$$J$$$h$&$G$9!#(B
$B46?($+$i$9$k$H!"$I$3$+$K%m%0%"%&%HA0$N%Z!<%8$,%-%c%C%7%e$5$l$F$$$F(B
$B!V(BF5$B!J99?7!K!W$r2!$5$J$$>l9g$O!"%-%c%C%7%e$N%Z!<%8$,8F$S=P$5$l$F$$$k$h$&$K8+(B
$B$($^$9!#(B
$B%P!<%A%c%k%[%9%H$N @ _Dj$NCf$K!"$J$K$+%-%c%C%7%e$N @ _Dj$,$"$k$N$G$7$g$&$+!)(B
$B0l1~!"(BApache2$B$N%P!<%A%c%k%[%9%H @ _Dj$O0J2<$N$H$*$j$G$9!#(B

NameVirtualHost 192.168.0.108
<VirtualHost 192.168.0.108>
ServerName www.hoge.org
ServerAdmin webmaster @ hoge.org
DocumentRoot /usr/local/apache2/htdocs/mt/tp
ErrorLog /usr/local/apache2/logs/tp_error_log
TransferLog /usr/local/apache2/logs/tp_access_log
</VirtualHost>

> php.ini $B%U%!%$%k$N(Bsession$B4XO"$N @ _Dj>pJs$b$"$k$H(B
> $BC/$+$,$b$C$H$$$$%"%I%P%$%9$r$7$F$/$l$k$d$b$7$l$^$;$s!#(B
> $B!J(Bsession$B$NAw<u?.$O%/%C%-!<;H$C$F$k$s$G$9$h$M!)!K(B

$B0l1~!"(Bphpinfo() $B$N=PNO7k2L$+$i(Bsession$B4XO"$N$H$3$m$rH4$-=P$9$H(B
$B0J2<$N$h$&$J46$8$G$9!#(B

$B"#(Bsession
Session Support : enabled
Registered save handlers : files user

session.auto_start : Off
session.bug_compat_42 : On
session.bug_compat_warn : On
session.cache_expire : 180
session.cache_limiter : private
session.cookie_domain : no value
session.cookie_lifetime : 0
session.cookie_path : /
session.cookie_secure : Off
session.entropy_file : no value
session.entropy_length : 0
session.gc_dividend : 100
session.gc_maxlifetime : 1440
session.gc_probability : 1
session.name : PHPSESSID
session.referer_check : no value
session.save_handler : files
session.save_path : /tmp
session.serialize_handler : php
session.use_cookies : On
session.use_only_cookies : Off
session.use_trans_sid : Off

$B2?$+$*J,$+$j$K$J$j$^$7$?$i!"(B
$BC18l%l%Y%k$G$b$1$C$3$&$G$9$N$G(B
$B%"%I%P%$%9$$$?$@$1$l$P9,$$$G$9!#(B

----
$B@>ED(B <tnishida @ cyx.co.jp>



PHP-users メーリングリストの案内