12-29-2014
Sessions across multiple scripts.
I wish to be able to pass PHP values between multiple scripts. In each script, I have the following before any HTML code:
PHP Code:
<?php
session_start();
session_name("STORE");
session_set_cookie_params( 'lifetime', '/var/www' );
session_id('Gingy');
set_time_limit(2400);
?>
The values of the variables are not visible in all scripts.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear all.....
I am currently writing a Help-Desk / Knowledge Base application using PHP/PostGreSQL.
I authenticate the user using a quite elaborate mechanism of cookies. The problem is that using cookies (I also have a version using sessions with the same problem), I can only seem to get one... (4 Replies)
Discussion started by: zazzybob
4 Replies
2. Solaris
Any idea as to how multiple loggin sessions by the same user (using Hyper terminal/Telnet) be restricted in Sun Solaris 8.
Rgds
Naushi (10 Replies)
Discussion started by: Naushi
10 Replies
3. Shell Programming and Scripting
I have a program which gets an input file (which contain a list of objects) and processes the objects one by one sequentially. However when there are many objects it is faster to split the input into smaller lists and run the program in multiple terminal sessions simultaneously. I want to know if... (2 Replies)
Discussion started by: stevefox
2 Replies
4. AIX
At the office, we often have to edit one file with VI. We are 4-6 workers doing it and sometimes can be done at the same time.
We have found a problem and want to prevent it with a file lock. Is it possible and how ?
problem :
Worker-a starts edit VI session on File-A at 1PM
Worker-b... (14 Replies)
Discussion started by: Browser_ice
14 Replies
5. UNIX for Advanced & Expert Users
Just a quick question,
Can I establish Multiple Sessions between two machines using FTAM?
Regards,
Gaurav Goel (0 Replies)
Discussion started by: gauravgoel
0 Replies
6. AIX
Hi.
I installed xming to access to my servers but I have a problem : i can only have one session at a time ... i don't find any parameter to change this.
Tks (3 Replies)
Discussion started by: stephnane
3 Replies
7. Red Hat
Hi,
I use OpenSSH to log on to a RH server but when I enter the password 2 session windows appear.
I only need one so can anyone advise where I can rectify this?
R,
D. (2 Replies)
Discussion started by: Duffs22
2 Replies
8. Shell Programming and Scripting
Dear all,
I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.
Here is the snippet:-
#!/bin/bash
HSFILE=/root/Test/Components.txt
LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies
9. UNIX for Beginners Questions & Answers
Hi ,
Can someone help!
I need a shell script to run multiple scripts by using single shell script,
incase any one of the scripts fails, it should get exit and after trouble shooting if we re-execute it, it should start from the failed script (4 Replies)
Discussion started by: anniesurolyn
4 Replies
10. UNIX for Advanced & Expert Users
Hello All,
I have to restart 100's of scripts for at least 20+ users once the server restarts for any reason. I wanted to come up with a single script to trigger of all scripts/programs under all users with just one script (without root privilege).
Is it possible to do so? :confused: If not,... (6 Replies)
Discussion started by: PikK45
6 Replies
LEARN ABOUT PHP
nsapi_virtual
NSAPI_VIRTUAL(3) 1 NSAPI_VIRTUAL(3)
nsapi_virtual - Perform an NSAPI sub-request
SYNOPSIS
bool nsapi_virtual (string $uri)
DESCRIPTION
nsapi_virtual(3) is an NSAPI-specific function which is equivalent to <!--#include virtual...--> in SSI ( .shtml files). It does an NSAPI
sub-request. It is useful for including CGI scripts or .shtml files, or anything else that you'd parse through webserver.
To run the sub-request, all buffers are terminated and flushed to the browser, pending headers are sent too.
You cannot make recursive requests with this function to other PHP scripts. If you want to include PHP scripts, use include(3) or
require(3).
Note
This function depends on a undocumented feature of the Netscape/iPlanet/Sun webservers. Use phpinfo(3) to determine if it is avail-
able. In the Unix environment it should always work, in Windows it depends on the name of a ns-httpdXX.dll file.
Read the note about subrequests in the NSAPI section (UNIX, Windows) if you experience this problem.
PARAMETERS
o $uri
- The URI of the script.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
PHP Documentation Group NSAPI_VIRTUAL(3)