Ilia Alshanetsky
57c91b571e
Fixed bug #11643
2002-09-26 18:12:27 +00:00
foobar
6b8480fab6
Fix bug: #14991 (changing session.use_trans_sid does not work in scripts)
2002-09-26 16:46:21 +00:00
Ilia Alshanetsky
7ae2196852
Fixed bugs #18167 & #16859
2002-09-25 13:26:03 +00:00
Sascha Schumann
03c07308d3
Improve error messages
2002-09-25 12:38:45 +00:00
Sascha Schumann
ff12826fc1
(php_get_session_var) Always return FAILURE if no data source was found.
...
Noticed by: Sebastian Bergmann
2002-09-23 14:04:50 +00:00
Sascha Schumann
e20c6c8e9c
Because track vars are always initialized, get_session_var failed
...
to work in the register_globals=1 case.
It is now possible again to store session variables in global vars.
2002-09-21 05:46:32 +00:00
Sascha Schumann
702d7afc3c
Reenable pwrite/pread support
...
The old checks supposed that pread/pwrite worked, if a declaration was
found in <unistd.h>. We now actually check whether they work successfully
before using them.
2002-09-06 10:27:26 +00:00
foobar
3bf7519210
@- Added --disable-all configure option. (Jani)
2002-09-04 18:47:28 +00:00
Dan Kalowsky
e5324723d0
sniper claims its safe to take these out as well.
2002-09-04 13:52:41 +00:00
Dan Kalowsky
65df9d5127
taking out the PWRITE calls too
2002-09-04 13:51:08 +00:00
Dan Kalowsky
31fe6a549f
This fixes Bug #19022 and #15983
2002-09-04 13:42:59 +00:00
Zeev Suraski
3b646f0e5d
Use mtime instead of atime, as we always update the session file anyway.
2002-08-17 20:32:26 +00:00
Zeev Suraski
900651b7ab
Make unset($_SESSION['foo']) actually remove the variable from the session,
...
if register_globals is off.
2002-08-15 21:44:44 +00:00
Dan Kalowsky
26986164b4
Correcting some english in the comment...
2002-08-15 19:32:08 +00:00
Yasuo Ohgaki
13a3dd7b77
Forgot to update source default.
2002-08-14 22:31:39 +00:00
foobar
29aae162e0
ws fix
2002-07-03 02:16:46 +00:00
foobar
087f2be56f
- Fixed bug: #17977 , session build as shared works now with mm handler too.
...
- Added listing of save handlers into phpinfo() output
2002-06-28 02:27:02 +00:00
Sascha Schumann
dcf67c4433
This option enables administrators to make their users invulnerable to
...
attacks which involve passing session ids in URLs.
2002-06-12 08:18:36 +00:00
Markus Fischer
39f16dbc65
- Tell the user why his session doesn't work if he uses custom session_id()s.
2002-05-30 11:41:37 +00:00
Andrei Zmievski
1668570e4d
Changing email address.
2002-05-13 17:28:38 +00:00
Sascha Schumann
38ad391894
- Fix the way code was outcommented
...
- Remove unused STR_CAT macro
- Remove limits/tests based on unused macro
- Implement cache_limiter(private) using private_no_expire
2002-05-12 12:51:42 +00:00
Sander Roobol
375d7960a7
Revert Preston's patch
2002-05-09 20:02:47 +00:00
Preston L. Bannister
9fdec2e345
Change default directory for session data from /tmp (non-portable) to none.
...
Default directory for session data (if not specified) is same (platform-specific) directory used for temporary files.
This is backwards compatible and removes the need for explicitly specifying the session.save_path on Win32.
2002-05-09 19:42:00 +00:00
Thies C. Arntzen
23251ebd1a
re-add accidentily nuked session_adapt_url()
2002-05-05 16:39:49 +00:00
Sascha Schumann
9743860d35
simplify handling of variables by maintaining two strings which
...
are simply appended instead of traversing the hash table on each
URL/form.
also fix an unconditional segfault in rshutdown due to efree'ing
a static char *.
remove remove_var, add reset_vars. move the function declarations
into the right header file.
2002-05-04 18:33:13 +00:00
Sascha Schumann
9517ff0689
Fix --enable-session=shared
2002-05-04 16:48:48 +00:00
Sebastian Bergmann
8193ca7891
Fix ZTS build.
2002-05-03 08:10:43 +00:00
Thies C. Arntzen
9712a4b3c8
@ - Added output_add_rewrite_var() and output_remove_rewrite_var() to inject
...
@ and remove variables from the URL-Rewriter. (thies)
i have also modified the session module to use this - so it doesn't
need to fiddle with the output-system any more
2002-05-03 08:00:41 +00:00
Thies C. Arntzen
42158ef7c8
revert session_set_userdata - diffent patch will come shortly
2002-04-28 11:45:45 +00:00
Thies C. Arntzen
eb105693b8
@ - added session_set_userdata() which enables you to specify one variable
...
@ that will be kept in the browser in addition to the session-id. This
@ only works when using trans-sid sessions (no cookie). (thies)
2002-04-27 14:07:52 +00:00
Sascha Schumann
2b07dd4fe3
three less strlen invocations
2002-04-26 21:27:38 +00:00
Sascha Schumann
1d22766fb1
Add #ifdef.. around F_SETFD.
2002-04-23 19:58:31 +00:00
Sascha Schumann
5a83ad6dc1
Set the close-on-exec flag for fds. Child processes should not inherit
...
the fd.
Also rip out the broken O_EXCL use. Our file names are not unique and
this left a small window open where creating a session file would fail
(a, b notice that the file does not exist; a creates the file successfully;
b tries to create, but fails due to O_EXCL).
2002-04-22 20:39:24 +00:00
Yasuo Ohgaki
c1ae59c588
Fixed file include error
2002-04-19 07:55:24 +00:00
Sascha Schumann
3a3acee3c9
- Proper use of underscores (s/createsid/create_sid/)
...
- Bump the API date and remove extra cpp macro
- Pass TSRMLS appropiately to the create_sid function
2002-03-30 16:29:15 +00:00
Mark L. Woodward
346d74a146
Added field to ps_module structure to hold function pointer for the creation
...
of the session ID string. Default PS_MOD() macro sets this to be the default
creation routine. PS_MOD_SID() macro sets this to a handlers session ID
creation routine.
2002-03-29 16:00:27 +00:00
jim winstead
d3400b2b5f
the 'setup' script was removed more than two years ago.
...
these can be safely removed from the 4.2 branch, too.
2002-03-16 00:21:40 +00:00
Sascha Schumann
730800a96d
Because of the feature "don't try to send a cookie, if the sid
...
was contained in get/post variables" (which I still am not convinced
of completely), we need a separate variable which determines whether
to define SID in the event that a cookie was not sent.
Noticed by: Matt Allen
2002-03-13 13:08:49 +00:00
Yasuo Ohgaki
e0867ffcf1
Add missing skipif.inc
2002-03-12 05:42:43 +00:00
foobar
131f125fdd
whitespace..
2002-03-09 00:24:42 +00:00
Sander Roobol
58a52f93bc
Fixed many tests, mostly incorrect paths.
2002-03-08 19:16:19 +00:00
Sascha Schumann
d62c336cf2
These tests currently depend on register_globals=1
2002-03-07 20:51:27 +00:00
Sascha Schumann
9d9d39a0de
Please welcome the new build system.
...
If you encounter any problems, please make sure to email sas@php.net
directly.
An introduction can be found on
http://schumann.cx/buildv5.txt
2002-03-07 14:20:02 +00:00
Sascha Schumann
b5660126d0
Do the estrdups after checking for parameter constraints.
...
No real memory leaks though, because they are catched by the
memory manager.
2002-03-06 12:34:47 +00:00
Sascha Schumann
0c69739feb
Did not revert back enough.
...
This patch does not make sense, because it enforces the existence
of a single directory.
2002-03-06 12:25:01 +00:00
Sascha Schumann
0bf5fc14be
SID shall be defined to name=id, if the client did not supply
...
a cookie.
2002-03-06 12:12:39 +00:00
Sascha Schumann
8141c7761c
Merge in session API changes (carry around tsrm context)
...
Now PHP_SESSION_API is defined to the date of the last change,
so that externa source-code can handle changes more gracefully.
2002-03-06 11:49:51 +00:00
Sascha Schumann
398b1011dc
Always initialize the track-vars
2002-03-06 11:41:17 +00:00
Sascha Schumann
ca59cb7cf9
Weep out all recent commits of Yasuo.
...
I don't have time right now to leave in the good ones and remove
only the bad ones.
There are some semantical changes which I reject, because
they aim at fixing a bug which is at a completely other location.
Then SID does not gefined anymore properly. (This broken patch
has not been sent to me at all.)
Also, there were *so* many whitespace changes which already
make these commits bogus.
2002-03-06 09:02:31 +00:00
Yasuo Ohgaki
d36ddb5a9f
Fixed typo :)
2002-03-06 09:01:13 +00:00