session_basic5.phpt 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. --TEST--
  2. Test basic function : variation5 use_trans_sid
  3. --INI--
  4. session.use_strict_mode=0
  5. session.use_only_cookies=0
  6. session.use_trans_sid=1
  7. session.save_handler=files
  8. session.hash_bits_per_character=4
  9. session.hash_function=0
  10. session.gc_probability=1
  11. session.gc_divisor=1000
  12. session.gc_maxlifetime=300
  13. session.save_path=
  14. session.name=PHPSESSID
  15. --EXTENSIONS--
  16. session
  17. --SKIPIF--
  18. <?php include('skipif.inc'); ?>
  19. --FILE--
  20. <?php
  21. ob_start();
  22. $_SERVER['HTTP_HOST'] = 'php.net';
  23. ini_set('session.trans_sid_hosts','php.net,example.com');
  24. echo "*** Testing basic session functionality : variation5 use_trans_sid ***\n";
  25. echo "*** Test trans sid ***\n";
  26. $session_id = 'session-basic5';
  27. session_id($session_id);
  28. session_start();
  29. // Should add session ID to allowed hosts only for SECURITY
  30. echo '
  31. <a href="/">test</a>
  32. <a href="/path">test</a>
  33. <a href="/path/">test</a>
  34. <a href="/path/?foo=var">test</a>
  35. <a href="../">test</a>
  36. <a href="../path">test</a>
  37. <a href="../path/">test</a>
  38. <a href="../path/?foo=var">test</a>
  39. <a href="/#bar">test</a>
  40. <a href="/path/#bar">test</a>
  41. <a href="/path/?foo=var#bar">test</a>
  42. <a href="../#bar">test</a>
  43. <a href="../path/#bar">test</a>
  44. <a href="../path/?foo=var#bar">test</a>
  45. <a href="/?foo">test</a>
  46. <a href="/?foo#bar">test</a>
  47. <a href="/?foo=var">test</a>
  48. <a href="/?foo=var#bar">test</a>
  49. <a href="../?foo">test</a>
  50. <a href="../?foo#bar">test</a>
  51. <a href="../?foo=var">test</a>
  52. <a href="../?foo=var#bar">test</a>
  53. <a href="file.php">test</a>
  54. <a href="file.php?foo">test</a>
  55. <a href="file.php?foo=var">test</a>
  56. <a href="file.php?foo=var#bar">test</a>
  57. <a href="../file.php">test</a>
  58. <a href="../file.php?foo">test</a>
  59. <a href="../file.php?foo=var">test</a>
  60. <a href="../file.php?foo=var#bar">test</a>
  61. <a href="http://php.net">test</a>
  62. <a href="http://php.net/">test</a>
  63. <a href="http://php.net/#bar">test</a>
  64. <a href="http://php.net/?foo">test</a>
  65. <a href="http://php.net/?foo#bar">test</a>
  66. <a href="http://php.net/?foo=var">test</a>
  67. <a href="http://php.net/?foo=var#bar">test</a>
  68. <a href="http://php.net/file.php">test</a>
  69. <a href="http://php.net/file.php#bar">test</a>
  70. <a href="http://php.net/file.php?foo">test</a>
  71. <a href="http://php.net/file.php?foo#bar">test</a>
  72. <a href="http://php.net/file.php?foo=var">test</a>
  73. <a href="http://php.net/file.php?foo=var#bar">test</a>
  74. <a href="http://php.net/some/path/file.php">test</a>
  75. <a href="http://php.net/some/path/file.php?foo">test</a>
  76. <a href="http://php.net/some/path/file.php?foo=var">test</a>
  77. <a href="http://php.net/some/path/file.php?foo=var#bar">test</a>
  78. <a href="https://php.net">test</a>
  79. <a href="https://php.net/">test</a>
  80. <a href="https://php.net/?foo=var#bar">test</a>
  81. <a href="https://php.net/file.php">test</a>
  82. <a href="https://php.net/file.php?foo=var#bar">test</a>
  83. <a href="https://php.net/some/path/file.php">test</a>
  84. <a href="https://php.net/some/path/file.php?foo=var#bar">test</a>
  85. <a href="https://php.net:8443">test</a>
  86. <a href="https://php.net:8443/">test</a>
  87. <a href="https://php.net:8443/?foo=var#bar">test</a>
  88. <a href="https://php.net:8443/file.php">test</a>
  89. <a href="https://php.net:8443/file.php?foo=var#bar">test</a>
  90. <a href="https://php.net:8443/some/path/file.php">test</a>
  91. <a href="https://php.net:8443/some/path/file.php?foo=var#bar">test</a>
  92. <a href="//php.net">test</a>
  93. <a href="//php.net/">test</a>
  94. <a href="//php.net/#bar">test</a>
  95. <a href="//php.net/?foo">test</a>
  96. <a href="//php.net/?foo#bar">test</a>
  97. <a href="//php.net/?foo=var">test</a>
  98. <a href="//php.net/?foo=var#bar">test</a>
  99. <a href="//php.net/file.php">test</a>
  100. <a href="//php.net/file.php#bar">test</a>
  101. <a href="//php.net/file.php?foo">test</a>
  102. <a href="//php.net/file.php?foo#bar">test</a>
  103. <a href="//php.net/file.php?foo=var">test</a>
  104. <a href="//php.net/file.php?foo=var#bar">test</a>
  105. <a href="//php.net/some/path/file.php">test</a>
  106. <a href="//php.net/some/path/file.php?foo">test</a>
  107. <a href="//php.net/some/path/file.php?foo=var">test</a>
  108. <a href="//php.net/some/path/file.php?foo=var#bar">test</a>
  109. <form action="script.php" method="post">
  110. <input type="text" name="test1"></input>
  111. <input type="text" name="test2" />
  112. </form>
  113. <form action="../script.php" method="post">r
  114. <input type="text" name="test1"></input>
  115. <input type="text" name="test2" />
  116. </form>
  117. <form action="/path/script.php" method="post">
  118. <input type="text" name="test1"></input>
  119. <input type="text" name="test2" />
  120. </form>
  121. <form action="../path/script.php" method="post">
  122. <input type="text" name="test1"></input>
  123. <input type="text" name="test2" />
  124. </form>
  125. <form method="post" action="http://php.net/script.php">
  126. <input type="text" name="test1"></input>
  127. <input type="text" name="test2" />
  128. </form>
  129. <form method="post" action="https://php.net/script.php">
  130. <input type="text" name="test1"></input>
  131. <input type="text" name="test2" />
  132. </form>
  133. <form method="post" action="//php.net/script.php">
  134. <input type="text" name="test1"></input>
  135. <input type="text" name="test2" />
  136. </form>
  137. <a href="http://bad.com">test</a>
  138. <a href="http://bad.com/">test</a>
  139. <a href="http://bad.com/#bar">test</a>
  140. <a href="http://bad.com/?foo">test</a>
  141. <a href="http://bad.com/?foo#bar">test</a>
  142. <a href="http://bad.com/?foo=var">test</a>
  143. <a href="http://bad.com/?foo=var#bar">test</a>
  144. <a href="http://bad.com/file.php">test</a>
  145. <a href="http://bad.com/file.php#bar">test</a>
  146. <a href="http://bad.com/file.php?foo">test</a>
  147. <a href="http://bad.com/file.php?foo#bar">test</a>
  148. <a href="http://bad.com/file.php?foo=var">test</a>
  149. <a href="http://bad.com/file.php?foo=var#bar">test</a>
  150. <a href="http://bad.com/some/path/file.php">test</a>
  151. <a href="http://bad.com/some/path/file.php?foo">test</a>
  152. <a href="http://bad.com/some/path/file.php?foo=var">test</a>
  153. <a href="http://bad.com/some/path/file.php?foo=var#bar">test</a>
  154. <a href="https://bad.com">test</a>
  155. <a href="https://bad.com/">test</a>
  156. <a href="https://bad.com/?foo=var#bar">test</a>
  157. <a href="https://bad.com/file.php">test</a>
  158. <a href="https://bad.com/file.php?foo=var#bar">test</a>
  159. <a href="https://bad.com/some/path/file.php">test</a>
  160. <a href="https://bad.com/some/path/file.php?foo=var#bar">test</a>
  161. <a href="https://bad.com:8443">test</a>
  162. <a href="https://bad.com:8443/">test</a>
  163. <a href="https://bad.com:8443/?foo=var#bar">test</a>
  164. <a href="https://bad.com:8443/file.php">test</a>
  165. <a href="https://bad.com:8443/file.php?foo=var#bar">test</a>
  166. <a href="https://bad.com:8443/some/path/file.php">test</a>
  167. <a href="https://bad.com:8443/some/path/file.php?foo=var#bar">test</a>
  168. <a href="//bad.com">test</a>
  169. <a href="//bad.com/">test</a>
  170. <a href="//bad.com/#bar">test</a>
  171. <a href="//bad.com/?foo">test</a>
  172. <a href="//bad.com/?foo#bar">test</a>
  173. <a href="//bad.com/?foo=var">test</a>
  174. <a href="//bad.com/?foo=var#bar">test</a>
  175. <a href="//bad.com/file.php">test</a>
  176. <a href="//bad.com/file.php#bar">test</a>
  177. <a href="//bad.com/file.php?foo">test</a>
  178. <a href="//bad.com/file.php?foo#bar">test</a>
  179. <a href="//bad.com/file.php?foo=var">test</a>
  180. <a href="//bad.com/file.php?foo=var#bar">test</a>
  181. <a href="//bad.com/some/path/file.php">test</a>
  182. <a href="//bad.com/some/path/file.php?foo">test</a>
  183. <a href="//bad.com/some/path/file.php?foo=var">test</a>
  184. <a href="//bad.com/some/path/file.php?foo=var#bar">test</a>
  185. <form action="//bad.com/script.php" method="post">
  186. <input type="text" name="test1"></input>
  187. <input type="text" name="test2" />
  188. </form>
  189. <form action="https://bad.com/foo/../script.php" method="post">
  190. <input type="text" name="test1"></input>
  191. <input type="text" name="test2" />
  192. </form>
  193. <form action="https://bad.com//path/script.php" method="post">
  194. <input type="text" name="test1"></input>
  195. <input type="text" name="test2" />
  196. </form>
  197. <form action="https://bad.com/foo/bar../path/script.php" method="post">
  198. <input type="text" name="test1"></input>
  199. <input type="text" name="test2" />
  200. </form>
  201. <form method="post" action="http://bad.com/script.php">
  202. <input type="text" name="test1"></input>
  203. <input type="text" name="test2" />
  204. </form>
  205. <form method="post" action="https://bad.com/script.php">
  206. <input type="text" name="test1"></input>
  207. <input type="text" name="test2" />
  208. </form>
  209. <form method="post" action="//bad.com/script.php">
  210. <input type="text" name="test1"></input>
  211. <input type="text" name="test2" />
  212. </form>
  213. ';
  214. var_dump(session_commit());
  215. echo "*** Cleanup ***\n";
  216. var_dump(session_start());
  217. var_dump(session_id());
  218. var_dump(session_destroy());
  219. ob_end_flush();
  220. ?>
  221. --EXPECT--
  222. *** Testing basic session functionality : variation5 use_trans_sid ***
  223. *** Test trans sid ***
  224. <a href="/?PHPSESSID=session-basic5">test</a>
  225. <a href="/path?PHPSESSID=session-basic5">test</a>
  226. <a href="/path/?PHPSESSID=session-basic5">test</a>
  227. <a href="/path/?foo=var&PHPSESSID=session-basic5">test</a>
  228. <a href="../?PHPSESSID=session-basic5">test</a>
  229. <a href="../path?PHPSESSID=session-basic5">test</a>
  230. <a href="../path/?PHPSESSID=session-basic5">test</a>
  231. <a href="../path/?foo=var&PHPSESSID=session-basic5">test</a>
  232. <a href="/?PHPSESSID=session-basic5#bar">test</a>
  233. <a href="/path/?PHPSESSID=session-basic5#bar">test</a>
  234. <a href="/path/?foo=var&PHPSESSID=session-basic5#bar">test</a>
  235. <a href="../?PHPSESSID=session-basic5#bar">test</a>
  236. <a href="../path/?PHPSESSID=session-basic5#bar">test</a>
  237. <a href="../path/?foo=var&PHPSESSID=session-basic5#bar">test</a>
  238. <a href="/?foo&PHPSESSID=session-basic5">test</a>
  239. <a href="/?foo&PHPSESSID=session-basic5#bar">test</a>
  240. <a href="/?foo=var&PHPSESSID=session-basic5">test</a>
  241. <a href="/?foo=var&PHPSESSID=session-basic5#bar">test</a>
  242. <a href="../?foo&PHPSESSID=session-basic5">test</a>
  243. <a href="../?foo&PHPSESSID=session-basic5#bar">test</a>
  244. <a href="../?foo=var&PHPSESSID=session-basic5">test</a>
  245. <a href="../?foo=var&PHPSESSID=session-basic5#bar">test</a>
  246. <a href="file.php?PHPSESSID=session-basic5">test</a>
  247. <a href="file.php?foo&PHPSESSID=session-basic5">test</a>
  248. <a href="file.php?foo=var&PHPSESSID=session-basic5">test</a>
  249. <a href="file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  250. <a href="../file.php?PHPSESSID=session-basic5">test</a>
  251. <a href="../file.php?foo&PHPSESSID=session-basic5">test</a>
  252. <a href="../file.php?foo=var&PHPSESSID=session-basic5">test</a>
  253. <a href="../file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  254. <a href="http://php.net/?PHPSESSID=session-basic5">test</a>
  255. <a href="http://php.net/?PHPSESSID=session-basic5">test</a>
  256. <a href="http://php.net/?PHPSESSID=session-basic5#bar">test</a>
  257. <a href="http://php.net/?foo&PHPSESSID=session-basic5">test</a>
  258. <a href="http://php.net/?foo&PHPSESSID=session-basic5#bar">test</a>
  259. <a href="http://php.net/?foo=var&PHPSESSID=session-basic5">test</a>
  260. <a href="http://php.net/?foo=var&PHPSESSID=session-basic5#bar">test</a>
  261. <a href="http://php.net/file.php?PHPSESSID=session-basic5">test</a>
  262. <a href="http://php.net/file.php?PHPSESSID=session-basic5#bar">test</a>
  263. <a href="http://php.net/file.php?foo&PHPSESSID=session-basic5">test</a>
  264. <a href="http://php.net/file.php?foo&PHPSESSID=session-basic5#bar">test</a>
  265. <a href="http://php.net/file.php?foo=var&PHPSESSID=session-basic5">test</a>
  266. <a href="http://php.net/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  267. <a href="http://php.net/some/path/file.php?PHPSESSID=session-basic5">test</a>
  268. <a href="http://php.net/some/path/file.php?foo&PHPSESSID=session-basic5">test</a>
  269. <a href="http://php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5">test</a>
  270. <a href="http://php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  271. <a href="https://php.net/?PHPSESSID=session-basic5">test</a>
  272. <a href="https://php.net/?PHPSESSID=session-basic5">test</a>
  273. <a href="https://php.net/?foo=var&PHPSESSID=session-basic5#bar">test</a>
  274. <a href="https://php.net/file.php?PHPSESSID=session-basic5">test</a>
  275. <a href="https://php.net/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  276. <a href="https://php.net/some/path/file.php?PHPSESSID=session-basic5">test</a>
  277. <a href="https://php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  278. <a href="https://php.net:8443/?PHPSESSID=session-basic5">test</a>
  279. <a href="https://php.net:8443/?PHPSESSID=session-basic5">test</a>
  280. <a href="https://php.net:8443/?foo=var&PHPSESSID=session-basic5#bar">test</a>
  281. <a href="https://php.net:8443/file.php?PHPSESSID=session-basic5">test</a>
  282. <a href="https://php.net:8443/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  283. <a href="https://php.net:8443/some/path/file.php?PHPSESSID=session-basic5">test</a>
  284. <a href="https://php.net:8443/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  285. <a href="//php.net/?PHPSESSID=session-basic5">test</a>
  286. <a href="//php.net/?PHPSESSID=session-basic5">test</a>
  287. <a href="//php.net/?PHPSESSID=session-basic5#bar">test</a>
  288. <a href="//php.net/?foo&PHPSESSID=session-basic5">test</a>
  289. <a href="//php.net/?foo&PHPSESSID=session-basic5#bar">test</a>
  290. <a href="//php.net/?foo=var&PHPSESSID=session-basic5">test</a>
  291. <a href="//php.net/?foo=var&PHPSESSID=session-basic5#bar">test</a>
  292. <a href="//php.net/file.php?PHPSESSID=session-basic5">test</a>
  293. <a href="//php.net/file.php?PHPSESSID=session-basic5#bar">test</a>
  294. <a href="//php.net/file.php?foo&PHPSESSID=session-basic5">test</a>
  295. <a href="//php.net/file.php?foo&PHPSESSID=session-basic5#bar">test</a>
  296. <a href="//php.net/file.php?foo=var&PHPSESSID=session-basic5">test</a>
  297. <a href="//php.net/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  298. <a href="//php.net/some/path/file.php?PHPSESSID=session-basic5">test</a>
  299. <a href="//php.net/some/path/file.php?foo&PHPSESSID=session-basic5">test</a>
  300. <a href="//php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5">test</a>
  301. <a href="//php.net/some/path/file.php?foo=var&PHPSESSID=session-basic5#bar">test</a>
  302. <form action="script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />
  303. <input type="text" name="test1"></input>
  304. <input type="text" name="test2" />
  305. </form>
  306. <form action="../script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />r
  307. <input type="text" name="test1"></input>
  308. <input type="text" name="test2" />
  309. </form>
  310. <form action="/path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />
  311. <input type="text" name="test1"></input>
  312. <input type="text" name="test2" />
  313. </form>
  314. <form action="../path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="session-basic5" />
  315. <input type="text" name="test1"></input>
  316. <input type="text" name="test2" />
  317. </form>
  318. <form method="post" action="http://php.net/script.php"><input type="hidden" name="PHPSESSID" value="session-basic5" />
  319. <input type="text" name="test1"></input>
  320. <input type="text" name="test2" />
  321. </form>
  322. <form method="post" action="https://php.net/script.php"><input type="hidden" name="PHPSESSID" value="session-basic5" />
  323. <input type="text" name="test1"></input>
  324. <input type="text" name="test2" />
  325. </form>
  326. <form method="post" action="//php.net/script.php"><input type="hidden" name="PHPSESSID" value="session-basic5" />
  327. <input type="text" name="test1"></input>
  328. <input type="text" name="test2" />
  329. </form>
  330. <a href="http://bad.com">test</a>
  331. <a href="http://bad.com/">test</a>
  332. <a href="http://bad.com/#bar">test</a>
  333. <a href="http://bad.com/?foo">test</a>
  334. <a href="http://bad.com/?foo#bar">test</a>
  335. <a href="http://bad.com/?foo=var">test</a>
  336. <a href="http://bad.com/?foo=var#bar">test</a>
  337. <a href="http://bad.com/file.php">test</a>
  338. <a href="http://bad.com/file.php#bar">test</a>
  339. <a href="http://bad.com/file.php?foo">test</a>
  340. <a href="http://bad.com/file.php?foo#bar">test</a>
  341. <a href="http://bad.com/file.php?foo=var">test</a>
  342. <a href="http://bad.com/file.php?foo=var#bar">test</a>
  343. <a href="http://bad.com/some/path/file.php">test</a>
  344. <a href="http://bad.com/some/path/file.php?foo">test</a>
  345. <a href="http://bad.com/some/path/file.php?foo=var">test</a>
  346. <a href="http://bad.com/some/path/file.php?foo=var#bar">test</a>
  347. <a href="https://bad.com">test</a>
  348. <a href="https://bad.com/">test</a>
  349. <a href="https://bad.com/?foo=var#bar">test</a>
  350. <a href="https://bad.com/file.php">test</a>
  351. <a href="https://bad.com/file.php?foo=var#bar">test</a>
  352. <a href="https://bad.com/some/path/file.php">test</a>
  353. <a href="https://bad.com/some/path/file.php?foo=var#bar">test</a>
  354. <a href="https://bad.com:8443">test</a>
  355. <a href="https://bad.com:8443/">test</a>
  356. <a href="https://bad.com:8443/?foo=var#bar">test</a>
  357. <a href="https://bad.com:8443/file.php">test</a>
  358. <a href="https://bad.com:8443/file.php?foo=var#bar">test</a>
  359. <a href="https://bad.com:8443/some/path/file.php">test</a>
  360. <a href="https://bad.com:8443/some/path/file.php?foo=var#bar">test</a>
  361. <a href="//bad.com">test</a>
  362. <a href="//bad.com/">test</a>
  363. <a href="//bad.com/#bar">test</a>
  364. <a href="//bad.com/?foo">test</a>
  365. <a href="//bad.com/?foo#bar">test</a>
  366. <a href="//bad.com/?foo=var">test</a>
  367. <a href="//bad.com/?foo=var#bar">test</a>
  368. <a href="//bad.com/file.php">test</a>
  369. <a href="//bad.com/file.php#bar">test</a>
  370. <a href="//bad.com/file.php?foo">test</a>
  371. <a href="//bad.com/file.php?foo#bar">test</a>
  372. <a href="//bad.com/file.php?foo=var">test</a>
  373. <a href="//bad.com/file.php?foo=var#bar">test</a>
  374. <a href="//bad.com/some/path/file.php">test</a>
  375. <a href="//bad.com/some/path/file.php?foo">test</a>
  376. <a href="//bad.com/some/path/file.php?foo=var">test</a>
  377. <a href="//bad.com/some/path/file.php?foo=var#bar">test</a>
  378. <form action="//bad.com/script.php" method="post">
  379. <input type="text" name="test1"></input>
  380. <input type="text" name="test2" />
  381. </form>
  382. <form action="https://bad.com/foo/../script.php" method="post">
  383. <input type="text" name="test1"></input>
  384. <input type="text" name="test2" />
  385. </form>
  386. <form action="https://bad.com//path/script.php" method="post">
  387. <input type="text" name="test1"></input>
  388. <input type="text" name="test2" />
  389. </form>
  390. <form action="https://bad.com/foo/bar../path/script.php" method="post">
  391. <input type="text" name="test1"></input>
  392. <input type="text" name="test2" />
  393. </form>
  394. <form method="post" action="http://bad.com/script.php">
  395. <input type="text" name="test1"></input>
  396. <input type="text" name="test2" />
  397. </form>
  398. <form method="post" action="https://bad.com/script.php">
  399. <input type="text" name="test1"></input>
  400. <input type="text" name="test2" />
  401. </form>
  402. <form method="post" action="//bad.com/script.php">
  403. <input type="text" name="test1"></input>
  404. <input type="text" name="test2" />
  405. </form>
  406. bool(true)
  407. *** Cleanup ***
  408. bool(true)
  409. string(14) "session-basic5"
  410. bool(true)