|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-17 08:00 UTC] leo dot jokinen at laurea dot fi
Description: ------------ My session.save_path contains these sessionfiles. Every time when i reload my page, the new file is being made. PHP won't find the current session. This problem happens also when is redirect my code into another php-file. I am running php with module of apache 1.3.28. Some stats: session.auto_start Off session.bug_compat_42 On session.bug_compat_warn On session.cache_expire 180 session.cache_limiter nocache 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_divisor 100 1 session.gc_maxlifetime 900 session.gc_probability 1 session.name PHPSESSID session.referer_check no value session.save_handler files session.save_path /Program Files/PHP/sessions/ session.serialize_handler php session.use_cookies On session.use_only_cookies On session.use_trans_sid Off PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 01:00:01 2025 UTC |
I was bit hasty for previous comment. Now my code works only when i use SID in the link. But for security reasons i want to pass the session id via cookie. I have this latest stable CVS snapshot. The only thing what i've changed is this line in php.ini: session.save_path = "F:/Program Files/PHP/sessions/" Here are the code what i am using now: Page1.php <?php session_start(); $_SESSION['sess_var'] = "Hello world!"; session_write_close(); echo "The content is ". $_SESSION['sess_var']. "<br />"; ?> <a href="page2.php?<?php echo SID?>">Next page</a> Page2.php <?php session_start(); echo "The content is ".$_SESSION['sess_var']."<br />"; unset ($_SESSION['sess_var']); session_write_close(); ?> <a href="page1.php?<?php echo SID?>">First Page</a>