summaryrefslogtreecommitdiff
path: root/ext/session/session.c
Commit message (Collapse)AuthorAgeFilesLines
* revert session_set_userdata - diffent patch will come shortlyThies C. Arntzen2002-04-281-37/+2
|
* @ - added session_set_userdata() which enables you to specify one variableThies C. Arntzen2002-04-271-2/+37
| | | | | | @ that will be kept in the browser in addition to the session-id. This @ only works when using trans-sid sessions (no cookie). (thies)
* three less strlen invocationsSascha Schumann2002-04-261-3/+3
|
* - Proper use of underscores (s/createsid/create_sid/)Sascha Schumann2002-03-301-2/+2
| | | | | | - Bump the API date and remove extra cpp macro - Pass TSRMLS appropiately to the create_sid function
* Added field to ps_module structure to hold function pointer for the creationMark L. Woodward2002-03-291-6/+15
| | | | | | | 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.
* Because of the feature "don't try to send a cookie, if the sidSascha Schumann2002-03-131-2/+3
| | | | | | | | | 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
* whitespace..foobar2002-03-091-1/+1
|
* Do the estrdups after checking for parameter constraints.Sascha Schumann2002-03-061-11/+11
| | | | | | No real memory leaks though, because they are catched by the memory manager.
* SID shall be defined to name=id, if the client did not supplySascha Schumann2002-03-061-1/+2
| | | | | a cookie.
* Merge in session API changes (carry around tsrm context)Sascha Schumann2002-03-061-9/+9
| | | | | | Now PHP_SESSION_API is defined to the date of the last change, so that externa source-code can handle changes more gracefully.
* Always initialize the track-varsSascha Schumann2002-03-061-1/+1
|
* Weep out all recent commits of Yasuo.Sascha Schumann2002-03-061-151/+82
| | | | | | | | | | | | | | | 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.
* Oops. Fix compile failureYasuo Ohgaki2002-03-061-2/+1
|
* Using session_save_path() after starting session is obvious error.Yasuo Ohgaki2002-03-061-1/+6
| | | | | | Riase E_NOTICE error instead of E_WARNING. Since it is valid if user uses session_save_path() with session_module_name().
* Return FALSE when session_module_name() failed. Fix a little leak.Yasuo Ohgaki2002-03-061-13/+19
|
* Raise error when session module failed to open or readYasuo Ohgaki2002-03-061-5/+9
|
* Remove TSRMLS_FETCH() and use TSRMLS_C/TSRMLS_DYasuo Ohgaki2002-03-061-13/+14
| | | | | # Need a little more work for backword compatibility
* Fix bug #15322 and fix a little memory leakYasuo Ohgaki2002-03-051-50/+104
|
* Make $_SESSION and $HTTP_SESSION_VARS links to each otherZeev Suraski2002-03-051-0/+1
|
* Silence warning under Solaris 8 (WorkShop Compilers 5.0 98/12/15 C 5.0).Jon Parise2002-03-041-1/+1
|
* Fix another crash bugZeev Suraski2002-03-021-0/+2
|
* Fix a crash bug in the session moduleZeev Suraski2002-03-021-2/+3
|
* Added ob_get_status() to get array of buffers and it's status.Yasuo Ohgaki2002-03-011-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | (DO NOT document this function yet) Fixed crash bug with ob_end_*() function. ob_end_*() will not delete buffers that may not be deleted. php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for if the buffer created may be deleted or not. Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be deleted until script finshes. Changed ob_*() function that have void return type to bool. All ob_*() functions return TRUE for success, FALSE for failure. @ - Added ob_get_status() to get array of buffers and it's status. (Yasuo) @ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete @ buffers that may not be deleted. (Yasuo) @ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be @ deleted until script finshes. (Yasuo) @ - Changed ob_*() function that have void return type to bool. All ob_*() @ functions return TRUE for success, FALSE for failure. (Yasuo)
* move to the ZEND_DECLARE_MODULE_GLOBALS() and ZEND_EXTERN_MODULE_GLOBALSSterling Hughes2002-02-071-5/+1
| | | | | macros
* Let's be consistent and use zval instead of pvalfoobar2002-02-051-12/+12
|
* Export php_session_start().foobar2002-02-051-1/+1
|
* Revert last commit. Last patch has problem for the 1st request.Yasuo Ohgaki2002-02-031-11/+9
| | | | | | # I also found what's wrong in mod_mm.c :) # I'll fix it later since don't have much time now.
* Fixed crash when save_path is invalid.Yasuo Ohgaki2002-02-031-9/+11
| | | | | | Fixed crash when user save handler is incorrectly used. Fixed crash when session read failed.
* @ - Don't touch any globals in session_unset() if register_globals is setThies C. Arntzen2002-01-171-7/+9
| | | | | | | | | | | @ to off. (Thies) guys, shoot me if i'm wrong, but when we have set register_globals to off we should _not_ touch any global variables at any time, right? so all session register/unregister should only work on $HTTP_SESSION_VARS and $_SESSION. this patch fixes at least one spot where we were touching globals even with register_globals set to off.
* Export php_session_register_module/serializerYasuo Ohgaki2002-01-161-2/+2
|
* Get rid of error messageYasuo Ohgaki2001-12-301-3/+6
| | | | | | # These lines should be enabled when save handlers can be initialized # before session module initialization.
* Fix crash with external session save handlersYasuo Ohgaki2001-12-261-1/+1
| | | | | | | # This fixes only a little issue with sub modules # More fixes are needed to make sub modules work correctly. # 4.1.x also has the same problem....
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Remove PS_DEL_VAR macro, always use PS_DEL_VARL()Zeev Suraski2001-12-061-1/+1
|
* proto fixHartmut Holzgraefe2001-12-041-1/+3
|
* Save entries in $_SESSION even if register_globals is onZeev Suraski2001-11-241-4/+4
|
* Entries registered with session_register() and altered by changingZeev Suraski2001-11-241-9/+9
| | | | | $_SESSION (or $HTTP_SESSION_VARS) were not properly saved. Fixed.
* whitespaceZeev Suraski2001-11-241-9/+9
|
* Rewrite of unserializer which should be more maintainable and extensible.Sascha Schumann2001-11-101-3/+3
| | | | | | | Changes pass `make test´ and a couple of custom tests. Enjoy.
* added private_no_expire mode on session patched by Yasuo Ohgaki.Rui Hirokawa2001-11-021-0/+11
|
* Fix ZTS build.Andrei Zmievski2001-10-221-1/+0
|
* @- Added session_cache_expire() function. (patch from anuradha@gnu.org)Andrei Zmievski2001-10-221-0/+24
|
* fix ws issue introduce in my use_trans_sid commit...Sterling Hughes2001-10-181-2/+2
| | | | | # still getting used to emacs
* fix formatting, this line really was too long ;)Sterling Hughes2001-10-181-1/+5
|
* force use of the session.use_trans_sid settingSterling Hughes2001-10-181-4/+6
|
* * zend_module_entry change: apino, debug and zts are moved first,Stig Bakken2001-10-111-0/+2
| | | | | | see README.EXTENSIONS file for upgrade help. @Introduced extension version numbers (Stig)
* Always seed the LCG from the request-init hook, otherwise the seedSascha Schumann2001-09-211-4/+8
| | | | | | | | | would be shared among the threads which is quite pointless. Also use a function of the current time as one factor. Use gettimeofday() instead of time(), because it is faster on some operating systems.
* revert last commit. Guys, discuss such things first, then commit. Mkay?Sascha Schumann2001-09-111-10/+3
|
* Add an API function for setting the session id from a session module...Sterling Hughes2001-09-111-3/+10
| | | | | # The SRM folks wanted/needed this
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|