I'm working on a project that dynamically creates and modifies a Session variable that I use in a MYSQL query for the duration of a users visit. This Session variable can get lengthy, so does anyone know what the character limit is? Thanks
Yes I am also looking for the same thing. Can WP do that on its own or I have to strip out some content manually with php code?
It can hold quite a bit. How much data are you talking about? The session data is stored on the server so not a lot of information needs to be passed to and from the user's browser which increases speed. You can store a lot in a session variable if you need to.
We all now that upon calling session_start(), it will create a file and in this file the session variables that you assigned will be stored. My question is how big can a session file can be? is there a limit or maximum file size for a session file?
It would be dependent on the directory size that is available on the server. Normally, sessions are stores in a tmp or other session specific directory. This can often grow, but depending on how the server is setup it may be on its own partition which would have a maximum size. You can get the session path in phpinfo, or with: http://php.net/manual/en/function.session-save-path.php If you understand how the server file system is setup, you should be able to easily guess how much space you have available. Also, old sessions are periodically cleared out so you don't need to assume days or even hours of session information on the server.
@jestep I am seeing there is a limit => "8M" before PHP 5.2.0, "16M" in PHP 5.2.0 http://ca.php.net/manual/en/ini.core.php#ini.memory-limit