note 72088 added to ref.session
| From: | php-general at lists dot php dot net | Date: | Tue, 02 Jan 2007 11:44:21 +0000 |
| Subject: | note 72088 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121184@lists.php.net to get a copy of this message | ||
Bruno's shell script below is very helpful for those who want to customize their session
storage. I would only warn that there is a typo in his instructions. He states that the script
should be called as:
./mod_files.sh ./mod_files.sh /tmp/session 3 32
But you should only type mod_files.sh (or whatever the name of your script file is) once, not twice.
It doesn't need its own name as an argument.
Also - make sure you don't make the silly mistake I did of naming your script file
"script" and then trying to call it with the argument:
script /tmp/session 3 32
...because "script" is the name of a real Unix function, which will launch a completely
different function and then overwrite your original file with whatever you type after that. If you
do that by accident, you will need to type "exit" to get out of the script recording mode,
and then replace your script file. Also, you have to include the './' prior to the name
(i.e. './mod_files.sh' instead of 'mod_files.sh') unless you are running the
script from the folder where you installed it, because the location where you are installing this
probably (hopefully!) isn't in your PATH shell variable.
----
Server IP: 64.71.164.2
Probable Submitter: 68.163.192.14
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- https://master.php.net/note/edit/72088
Del: integrated -- https://master.php.net/note/delete/72088/integrated
Del: useless -- https://master.php.net/note/delete/72088/useless
Del: bad code -- https://master.php.net/note/delete/72088/bad+code
Del: spam -- https://master.php.net/note/delete/72088/spam
Del: non-english -- https://master.php.net/note/delete/72088/non-english
Del: in docs -- https://master.php.net/note/delete/72088/in+docs
Del: other reasons-- https://master.php.net/note/delete/72088
Reject -- https://master.php.net/note/reject/72088
Search -- https://master.php.net/manage/user-notes.php